diff options
author | hovertank3d <[email protected]> | 2025-01-18 23:27:52 +0100 |
---|---|---|
committer | hovertank3d <[email protected]> | 2025-01-18 23:28:53 +0100 |
commit | 1a5a86a5d4557200db20e20206bcdd7b9b2a7e55 (patch) | |
tree | 03aae452a7dc2d9f71cf7a83adbfd8e112ad562e /cmd/main.go | |
parent | 2aa29060c81fb52884b290603f1cf930259443b9 (diff) | |
download | lzcnt.space-1a5a86a5d4557200db20e20206bcdd7b9b2a7e55.tar.xz lzcnt.space-1a5a86a5d4557200db20e20206bcdd7b9b2a7e55.zip |
refactor and add /about
Diffstat (limited to 'cmd/main.go')
-rw-r--r-- | cmd/main.go | 19 |
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) +} |