diff options
author | Julio Capote <jcapote@gmail.com> | 2018-11-06 20:26:21 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2018-11-06 20:26:21 +0000 |
commit | 3d98eee4f2da4fecff7ce41bfe66a6b40eb2fc43 (patch) | |
tree | 622a5392f5af3782c74184fdf867da55c96bf72a /content/post/2013-10-07-golang-http-handlers-as-middleware.markdown | |
parent | d15dc6c9daaaff093b825b650a079b3ac02b362e (diff) | |
download | capotej.com-3d98eee4f2da4fecff7ce41bfe66a6b40eb2fc43.tar.gz |
fix post teasers
Diffstat (limited to '')
-rw-r--r-- | content/post/2013-10-07-golang-http-handlers-as-middleware.markdown | 2 |
1 files changed, 2 insertions, 0 deletions
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. +<!--more--> + Let's start with a basic file server for ```/tmp```: ```go main.go |