aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorhovertank3d <[email protected]>2025-01-18 23:27:52 +0100
committerhovertank3d <[email protected]>2025-01-18 23:28:53 +0100
commit1a5a86a5d4557200db20e20206bcdd7b9b2a7e55 (patch)
tree03aae452a7dc2d9f71cf7a83adbfd8e112ad562e /cmd
parent2aa29060c81fb52884b290603f1cf930259443b9 (diff)
downloadlzcnt.space-1a5a86a5d4557200db20e20206bcdd7b9b2a7e55.tar.xz
lzcnt.space-1a5a86a5d4557200db20e20206bcdd7b9b2a7e55.zip
refactor and add /about
Diffstat (limited to 'cmd')
-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)
+}