Simplify runtime version code more

It's no longer a build-time injected variable (as the comment above its
block indicates), so move it to the map below.
This commit is contained in:
Julius Volz 2016-04-05 23:57:22 +02:00
parent 2c19334715
commit 17ece74511

View file

@ -26,7 +26,6 @@ var (
Branch string Branch string
BuildUser string BuildUser string
BuildDate string BuildDate string
GoVersion = runtime.Version()
) )
// Map provides the iterable version information. // Map provides the iterable version information.
@ -36,7 +35,7 @@ var Map = map[string]string{
"branch": Branch, "branch": Branch,
"buildUser": BuildUser, "buildUser": BuildUser,
"buildDate": BuildDate, "buildDate": BuildDate,
"goVersion": GoVersion, "goVersion": runtime.Version(),
} }
func init() { func init() {