diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-02 15:31:00 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-02 15:31:00 +0100 |
commit | a1a067e6de1679d0a3a1503e93bb672432990cd4 (patch) | |
tree | d56234ae02077a0bf85bd549ca90301a54d581d4 /cmd | |
download | alps-a1a067e6de1679d0a3a1503e93bb672432990cd4.tar.gz alps-a1a067e6de1679d0a3a1503e93bb672432990cd4.zip |
Add HTTP server boilerplate
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/koushin/main.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cmd/koushin/main.go b/cmd/koushin/main.go new file mode 100644 index 0000000..cc86467 --- /dev/null +++ b/cmd/koushin/main.go @@ -0,0 +1,13 @@ +package main + +import ( + "git.sr.ht/~emersion/koushin" + "github.com/labstack/echo/v4/middleware" +) + +func main() { + e := koushin.New() + e.Use(middleware.Logger()) + e.Use(middleware.Recover()) + e.Logger.Fatal(e.Start(":1323")) +} |