Add version and startup message
This commit is contained in:
parent
94c9c76eac
commit
4ebf6dd715
3
main.go
3
main.go
@ -11,6 +11,8 @@ import (
|
|||||||
"github.com/holoplot/go-evdev"
|
"github.com/holoplot/go-evdev"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const Version = "v0.1.1"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Setup logger
|
// Setup logger
|
||||||
h := slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{Level: slog.LevelInfo})
|
h := slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{Level: slog.LevelInfo})
|
||||||
@ -48,6 +50,7 @@ func main() {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
// Start listening for PTT key
|
// Start listening for PTT key
|
||||||
|
slog.Info("Starting event listener", "version", Version)
|
||||||
for !done {
|
for !done {
|
||||||
ev, err := input.ReadOne()
|
ev, err := input.ReadOne()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user