From 7c53c56e1b1570953ab4adc322c02c791e893d30 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sat, 8 Feb 2025 18:40:53 +0100 Subject: [PATCH] chore: display Go version usded to build --- cmd/sloglint/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sloglint/main.go b/cmd/sloglint/main.go index 480f335..646b034 100644 --- a/cmd/sloglint/main.go +++ b/cmd/sloglint/main.go @@ -23,7 +23,7 @@ type versionFlag struct{} func (versionFlag) String() string { return "" } func (versionFlag) IsBoolFlag() bool { return true } func (versionFlag) Set(string) error { - fmt.Printf("sloglint version %s %s/%s\n", version, runtime.GOOS, runtime.GOARCH) + fmt.Printf("sloglint version %s %s/%s (built with %s)\n", version, runtime.GOOS, runtime.GOARCH, runtime.Version()) os.Exit(0) return nil }