aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2013-05-15 08:49:29 +0900
committermattn <mattn.jp@gmail.com>2013-05-16 09:01:49 +0900
commit90f3d4fa65310db9a033875e63bc22197077fabb (patch)
tree2c4357854648463092186aae4b92d44eb2ddcd4c /template
parenta866d47b860d336b7aee84751d7f5b543ce5f88d (diff)
downloadvim-sonictemplate-90f3d4fa65310db9a033875e63bc22197077fabb.tar.gz
vim-sonictemplate-90f3d4fa65310db9a033875e63bc22197077fabb.tar.bz2
vim-sonictemplate-90f3d4fa65310db9a033875e63bc22197077fabb.zip
Allow http handler template
Diffstat (limited to 'template')
-rw-r--r--template/go/snip-web-app-handlefunc.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/template/go/snip-web-app-handlefunc.go b/template/go/snip-web-app-handlefunc.go
new file mode 100644
index 0000000..ff0c77b
--- /dev/null
+++ b/template/go/snip-web-app-handlefunc.go
@@ -0,0 +1,3 @@
+http.HandleFunc("/", func (w http.ResponseWriter, r *http.Request) {
+ fmt.Fprintf(w, "")
+})