diff options
Diffstat (limited to 'template/go')
-rw-r--r-- | template/go/base-web-echo.go | 1 | ||||
-rw-r--r-- | template/go/snip-web-echo-get.go | 3 | ||||
-rw-r--r-- | template/go/snip-web-echo-post.go | 3 | ||||
-rw-r--r-- | template/go/snip-web-echo-static.go | 1 |
4 files changed, 8 insertions, 0 deletions
diff --git a/template/go/base-web-echo.go b/template/go/base-web-echo.go index 272d6fb..5d10096 100644 --- a/template/go/base-web-echo.go +++ b/template/go/base-web-echo.go @@ -13,3 +13,4 @@ func main() { }) e.Logger.Fatal(e.Start(":8989")) } +{{_filter_:web-echo}} diff --git a/template/go/snip-web-echo-get.go b/template/go/snip-web-echo-get.go new file mode 100644 index 0000000..f3fc8e4 --- /dev/null +++ b/template/go/snip-web-echo-get.go @@ -0,0 +1,3 @@ +e.GET("{{_cursor_}}", func(ctx echo.Context) error { + +}) diff --git a/template/go/snip-web-echo-post.go b/template/go/snip-web-echo-post.go new file mode 100644 index 0000000..751940a --- /dev/null +++ b/template/go/snip-web-echo-post.go @@ -0,0 +1,3 @@ +e.POST("{{_cursor_}}", func(ctx echo.Context) error { + +}) diff --git a/template/go/snip-web-echo-static.go b/template/go/snip-web-echo-static.go new file mode 100644 index 0000000..8bbc97b --- /dev/null +++ b/template/go/snip-web-echo-static.go @@ -0,0 +1 @@ +e.Static("/static", "assets") |