aboutsummaryrefslogtreecommitdiff
path: root/template/go/base-web-echo.go
blob: 5d10096bb98da808931d07c3f3de6cd8ac73e295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package main

import (
	"net/http"

	"github.com/labstack/echo"
)

func main() {
	e := echo.New()
	e.GET("/", func(c echo.Context) error {
		return c.String(http.StatusOK, "{{_cursor_}}")
	})
	e.Logger.Fatal(e.Start(":8989"))
}
{{_filter_:web-echo}}