aboutsummaryrefslogtreecommitdiff
path: root/template/go
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2012-11-28 21:53:55 +0900
committermattn <mattn.jp@gmail.com>2012-11-28 21:53:55 +0900
commit6ec145c0c63a5175eed8bee47b8b886759d610bc (patch)
tree928e02884dbaca38d4a5245ecdd3e58b90719d15 /template/go
parente0fcf5a243a8ca47e2276e02a05254b4aa003b2b (diff)
downloadvim-sonictemplate-6ec145c0c63a5175eed8bee47b8b886759d610bc.tar.gz
vim-sonictemplate-6ec145c0c63a5175eed8bee47b8b886759d610bc.tar.bz2
vim-sonictemplate-6ec145c0c63a5175eed8bee47b8b886759d610bc.zip
add webgo get/post template.
Diffstat (limited to 'template/go')
-rw-r--r--template/go/snip-webgo-get.go3
-rw-r--r--template/go/snip-webgo-post.go3
2 files changed, 6 insertions, 0 deletions
diff --git a/template/go/snip-webgo-get.go b/template/go/snip-webgo-get.go
new file mode 100644
index 0000000..1d24a1b
--- /dev/null
+++ b/template/go/snip-webgo-get.go
@@ -0,0 +1,3 @@
+web.Get("/", func() string {
+ {{_cursor_}}
+})
diff --git a/template/go/snip-webgo-post.go b/template/go/snip-webgo-post.go
new file mode 100644
index 0000000..4d4484c
--- /dev/null
+++ b/template/go/snip-webgo-post.go
@@ -0,0 +1,3 @@
+web.Post("/", func() string {
+ {{_cursor_}}
+})