From 3d98eee4f2da4fecff7ce41bfe66a6b40eb2fc43 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Tue, 6 Nov 2018 15:26:21 -0500 Subject: fix post teasers --- content/post/2013-10-07-golang-http-handlers-as-middleware.markdown | 2 ++ 1 file changed, 2 insertions(+) (limited to 'content/post/2013-10-07-golang-http-handlers-as-middleware.markdown') diff --git a/content/post/2013-10-07-golang-http-handlers-as-middleware.markdown b/content/post/2013-10-07-golang-http-handlers-as-middleware.markdown index 812632c..5b9b652 100644 --- a/content/post/2013-10-07-golang-http-handlers-as-middleware.markdown +++ b/content/post/2013-10-07-golang-http-handlers-as-middleware.markdown @@ -8,6 +8,8 @@ tags: ["go", "http"] 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. + + Let's start with a basic file server for ```/tmp```: ```go main.go -- cgit v1.2.3