aboutsummaryrefslogtreecommitdiff
path: root/template/go/base-web-webgo.go
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2014-10-07 20:35:09 +0900
committermattn <mattn.jp@gmail.com>2014-10-07 20:35:09 +0900
commit2b4f6edefe96cc0b1ace83ffa22fa31a765d724e (patch)
tree7a784db51336a710e62613ec5b73c24257236a27 /template/go/base-web-webgo.go
parent2bccbb65cf40b75c90db4bd7506f20de461f8662 (diff)
downloadvim-sonictemplate-2b4f6edefe96cc0b1ace83ffa22fa31a765d724e.tar.gz
vim-sonictemplate-2b4f6edefe96cc0b1ace83ffa22fa31a765d724e.tar.bz2
vim-sonictemplate-2b4f6edefe96cc0b1ace83ffa22fa31a765d724e.zip
rename
Diffstat (limited to 'template/go/base-web-webgo.go')
-rw-r--r--template/go/base-web-webgo.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/template/go/base-web-webgo.go b/template/go/base-web-webgo.go
new file mode 100644
index 0000000..c67b6a7
--- /dev/null
+++ b/template/go/base-web-webgo.go
@@ -0,0 +1,13 @@
+package main
+
+import (
+ "github.com/hoisie/web"
+)
+
+func main() {
+ web.Get("/", func() string {
+ return "{{_cursor_}}"
+ })
+ web.Run(":8080")
+}
+{{_filter_:webgo}}