block by joyrexus b356daf89a22cfea7079

golang web dev

Resources for golang web development.

Examples

General

Introductory articles and tutorials

Forms

Useful packages for creating and processing form data include:

Templates

Authentication

Static Content

Middleware

How to share context and functionality

If you’re using a middleware pattern to process HTTP requests in Go, you may want to share some data or context between middleware handlers and your application handlers.

HTTP APIs

For material specifically focused on HTTP API / web service development, see this gist.

Packages

The gorilla web toolkit provides a fairly comprehensive set of web utility packages.

For basic routing, I like httprouter … and, along similar lines, httptreemux.

Both gin-gonic and echo appear to be nice/performant micro-web frameworks.

Other stuff …

Reference

Status Codes

Header Fields