From a1a067e6de1679d0a3a1503e93bb672432990cd4 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 2 Dec 2019 15:31:00 +0100 Subject: Add HTTP server boilerplate --- cmd/koushin/main.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cmd/koushin/main.go (limited to 'cmd') 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")) +} -- cgit v1.2.3