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