From 4ebf6dd71576998a3d93a4bc560eae961e6920e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sun, 10 Mar 2024 03:24:11 +0100 Subject: [PATCH] Add version and startup message --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 72a57d9..fa5349a 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,8 @@ import ( "github.com/holoplot/go-evdev" ) +const Version = "v0.1.1" + func main() { // Setup logger h := slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{Level: slog.LevelInfo}) @@ -48,6 +50,7 @@ func main() { }() // Start listening for PTT key + slog.Info("Starting event listener", "version", Version) for !done { ev, err := input.ReadOne() if err != nil {