summaryrefslogtreecommitdiff
path: root/src/binder.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-15 07:37:18 -0300
committerEuAndreh <eu@euandre.org>2024-08-15 07:37:18 -0300
commitaa44df7545e13f6d2bb5ea088786d14f4a31a04d (patch)
tree035567e78bc4489ed2b7d9425cc4b2c9dcf658bc /src/binder.go
parentMakefile: Simplify a bit compile rule (diff)
downloadbinder-aa44df7545e13f6d2bb5ea088786d14f4a31a04d.tar.gz
binder-aa44df7545e13f6d2bb5ea088786d14f4a31a04d.tar.xz
Add src/version.go
Diffstat (limited to 'src/binder.go')
-rw-r--r--src/binder.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/binder.go b/src/binder.go
index 69b5e1b..c878744 100644
--- a/src/binder.go
+++ b/src/binder.go
@@ -3,6 +3,7 @@ package binder
import (
"fmt"
"io"
+ "log/slog"
"net"
"os"
"os/user"
@@ -131,7 +132,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)
dropRoot()