version: use runtime.Version() directly

Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
Wei Fu
2019-10-07 22:45:26 +08:00
parent 8d0d1ebb63
commit eaef634ef7
2 changed files with 5 additions and 4 deletions

View File

@@ -16,6 +16,8 @@
package version
import "runtime"
var (
// Package is filled at linking time
Package = "github.com/containerd/containerd"
@@ -27,6 +29,6 @@ var (
// the program at linking time.
Revision = ""
// GoVersion is filled at linking time
GoVersion = ""
// GoVersion is Go tree's version.
GoVersion = runtime.Version()
)