From 13029cc7fed8ddd8d39b5e61b063dfcc39fdfd56 Mon Sep 17 00:00:00 2001 From: Bradley Cicenas Date: Mon, 19 Jun 2017 12:23:39 +0000 Subject: [PATCH] add go runtime to version output --- main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index e80bb67..0b93aea 100644 --- a/main.go +++ b/main.go @@ -4,6 +4,7 @@ import ( "flag" "fmt" "os" + "runtime" "github.com/bcicen/ctop/config" "github.com/bcicen/ctop/connector" @@ -16,15 +17,16 @@ import ( ) var ( - build = "none" - version = "dev-build" + build = "none" + version = "dev-build" + goVersion = runtime.Version() log *logging.CTopLogger cursor *GridCursor cGrid *compact.CompactGrid header *widgets.CTopHeader - versionStr = fmt.Sprintf("ctop version %v, build %v", version, build) + versionStr = fmt.Sprintf("ctop version %v, build %v %v", version, build, goVersion) ) func main() {