From 17ece745117b213c50de7d17c767a5cd8acd4022 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Tue, 5 Apr 2016 23:57:22 +0200 Subject: [PATCH] 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. --- version/info.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/version/info.go b/version/info.go index 8e43b5726..ee30efd3a 100644 --- a/version/info.go +++ b/version/info.go @@ -26,7 +26,6 @@ var ( Branch string BuildUser string BuildDate string - GoVersion = runtime.Version() ) // Map provides the iterable version information. @@ -36,7 +35,7 @@ var Map = map[string]string{ "branch": Branch, "buildUser": BuildUser, "buildDate": BuildDate, - "goVersion": GoVersion, + "goVersion": runtime.Version(), } func init() {