Skip to content

Commit

Permalink
print version
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Feb 10, 2022
1 parent 1ff95a3 commit e406cb6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion eos_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,13 @@ func printUsage() {
}

func printVersion() {

msg := `%s [%s]
go version = %s
build date = %s
commit = %s
`
fmt.Printf(msg, os.Args[0], version, goVersion, buildDate, gitCommit)
os.Exit(0)
}

func main() {
Expand Down

0 comments on commit e406cb6

Please sign in to comment.