Middleware Patterns in Go
How to do pre and post-processing on all requests