From 92b1dcb99d778d4c1c1b0e18d552302816871306 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 22 Jun 2017 14:52:01 +0900 Subject: add template for WAF/echo --- template/go/base-web-echo.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 template/go/base-web-echo.go diff --git a/template/go/base-web-echo.go b/template/go/base-web-echo.go new file mode 100644 index 0000000..272d6fb --- /dev/null +++ b/template/go/base-web-echo.go @@ -0,0 +1,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")) +} -- cgit v1.2.3-54-g00ecf