Golang HTTP Handlers as Middleware
Most modern web stacks allow the "filtering" of requests via stackable/composable middleware, allowing you to cleanly separate cross-cutting concerns from your web application. This weekend I needed to hook into go's http.FileServer
and was pleasantly surprised how easy it was to do.