Skip to content

Commit 13fdbde

Browse files
authored
chore: display Go version usded to build (#70)
1 parent 6760a8e commit 13fdbde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/sloglint/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type versionFlag struct{}
2323
func (versionFlag) String() string { return "" }
2424
func (versionFlag) IsBoolFlag() bool { return true }
2525
func (versionFlag) Set(string) error {
26-
fmt.Printf("sloglint version %s %s/%s\n", version, runtime.GOOS, runtime.GOARCH)
26+
fmt.Printf("sloglint version %s %s/%s (built with %s)\n", version, runtime.GOOS, runtime.GOARCH, runtime.Version())
2727
os.Exit(0)
2828
return nil
2929
}

0 commit comments

Comments
 (0)