aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/koushin/main.go13
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"))
+}