aboutsummaryrefslogtreecommitdiff
path: root/template/go/base-web-webgo.go
diff options
context:
space:
mode:
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}}