提交 17ece745 编写于 作者: J Julius Volz

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.
上级 2c193347
......@@ -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() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册