aboutsummaryrefslogtreecommitdiff
path: root/template/go/base-web-ion.go
blob: 311088e8f45e17949a86ab6873a72b4a74c2142a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"))
}