aboutsummaryrefslogtreecommitdiff
path: root/template/go/base-web-ion.go
diff options
context:
space:
mode:
Diffstat (limited to 'template/go/base-web-ion.go')
-rw-r--r--template/go/base-web-ion.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/template/go/base-web-ion.go b/template/go/base-web-ion.go
new file mode 100644
index 0000000..311088e
--- /dev/null
+++ b/template/go/base-web-ion.go
@@ -0,0 +1,14 @@
+package main
+
+import (
+ "github.com/get-ion/ion"
+ "github.com/get-ion/ion/context"
+)
+
+func main() {
+ app := ion.New()
+ app.Handle("GET", "/", func(ctx context.Context) {
+ ctx.HTML("{{_cursor_}}")
+ })
+ app.Run(ion.Addr(":8080"))
+}