We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f39dfa2 commit 317b7b1Copy full SHA for 317b7b1
version/info.go
@@ -61,6 +61,7 @@ var versionInfoTmpl = `
61
build user: {{.buildUser}}
62
build date: {{.buildDate}}
63
go version: {{.goVersion}}
64
+ platform: {{.platform}}
65
`
66
67
// Print returns version information.
@@ -73,6 +74,7 @@ func Print(program string) string {
73
74
"buildUser": BuildUser,
75
"buildDate": BuildDate,
76
"goVersion": GoVersion,
77
+ "platform": runtime.GOOS + "/" + runtime.GOARCH,
78
}
79
t := template.Must(template.New("version").Parse(versionInfoTmpl))
80
0 commit comments