diff options
author | EuAndreh <eu@euandre.org> | 2024-08-15 07:33:43 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-08-15 07:33:43 -0300 |
commit | 00f822df8bcecc3b40bdc39f0cd5dfb6d1efc45e (patch) | |
tree | f90796919973a4116ef7539db258029e6ab5a6ec /src | |
parent | Makefile: Simplify a bit compile rule (diff) | |
download | wscat-00f822df8bcecc3b40bdc39f0cd5dfb6d1efc45e.tar.gz wscat-00f822df8bcecc3b40bdc39f0cd5dfb6d1efc45e.tar.xz |
Add src/version.go
Diffstat (limited to 'src')
-rw-r--r-- | src/wscat.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wscat.go b/src/wscat.go index 51e5157..2fff3f5 100644 --- a/src/wscat.go +++ b/src/wscat.go @@ -231,6 +231,7 @@ import ( "errors" "fmt" "io" + "log/slog" "net" "net/http" "net/url" @@ -2552,7 +2553,7 @@ func Start(toAddr string, listener net.Listener) { func Main() { - g.Init() + g.Init(slog.Group("versions", "gobang", g.Version, "this", version)) args := parseArgs(os.Args) listener := listen(args.fromAddr) Start(args.toAddr, listener) |