Go Web Examples

Go is an open source programming language designed for building simple, fast, and reliable software. Take a look here which great companies use Go to power their services.

Go Web Examples provides easy to understand code snippets on how to do web development in the Go programming language and is inspired by Go By Example, which has a great introduction into the fundamentals of this language.

To get things started, check out the first example on how to create a classical "hello world" web application.


Getting Started
Hello World

Routes (net/http)
Routes (gorilla/mux)

Todo list

Forms & Requests
Contact Form

Sessions & Security
Sessions (gorilla/sessions)
Password hashing (bcrypt)

Assets & Files
Serving JavaScript/CSS

Logging Middleware
Middleware chaining

Working with JSON

Echo server