diff options
| author | ewy <ewy0@protonmail.com> | 2026-09-14 19:48:36 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-09-14 19:48:36 +0200 |
| commit | 899ef7448222f0d087c194b3379b702f8dd2ff8c (patch) | |
| tree | 8c2b508bb4d01236c7f582e4eee91fd178d09670 /cfg/flags.go | |
| parent | c69e6c0770359e2febafcf487eb21c4aa608c3e9 (diff) | |
add server and websocket comms
Diffstat (limited to 'cfg/flags.go')
| -rw-r--r-- | cfg/flags.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cfg/flags.go b/cfg/flags.go new file mode 100644 index 0000000..8d708bb --- /dev/null +++ b/cfg/flags.go @@ -0,0 +1,8 @@ +package cfg + +import "github.com/spf13/pflag" + +var ( + Port = pflag.IntP("port", "p", 23882, "port to serve on") + Host = pflag.StringP("host", "h", "0.0.0.0", "host to serve on") +) |
