aboutsummaryrefslogtreecommitdiff
path: root/cmd/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/main.go')
-rw-r--r--cmd/main.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmd/main.go b/cmd/main.go
new file mode 100644
index 0000000..5e8b373
--- /dev/null
+++ b/cmd/main.go
@@ -0,0 +1,19 @@
+package main
+
+import (
+ "os"
+
+ "github.com/hovertank3d/lzcnt.space"
+)
+
+import "C"
+
+func main() {
+ host := ":8080"
+ if len(os.Args) == 2 {
+ host = os.Args[1]
+ }
+
+ srv := lzcnt.New()
+ srv.ListenAndServe(host)
+}