summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-15 07:33:43 -0300
committerEuAndreh <eu@euandre.org>2024-08-15 07:33:43 -0300
commit00f822df8bcecc3b40bdc39f0cd5dfb6d1efc45e (patch)
treef90796919973a4116ef7539db258029e6ab5a6ec /src
parentMakefile: Simplify a bit compile rule (diff)
downloadwscat-00f822df8bcecc3b40bdc39f0cd5dfb6d1efc45e.tar.gz
wscat-00f822df8bcecc3b40bdc39f0cd5dfb6d1efc45e.tar.xz
Add src/version.go
Diffstat (limited to 'src')
-rw-r--r--src/wscat.go3
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)