aboutsummaryrefslogtreecommitdiff
path: root/template/go/base-web-echo.go
diff options
context:
space:
mode:
Diffstat (limited to 'template/go/base-web-echo.go')
-rw-r--r--template/go/base-web-echo.go15
1 files changed, 15 insertions, 0 deletions
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"))
+}