Skip to content

Commit

Permalink
add go runtime to version output
Browse files Browse the repository at this point in the history
  • Loading branch information
bcicen committed Jun 19, 2017
1 parent 58d9e4e commit 13029cc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"flag"
"fmt"
"os"
"runtime"

"github.com/bcicen/ctop/config"
"github.com/bcicen/ctop/connector"
Expand All @@ -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() {
Expand Down

0 comments on commit 13029cc

Please sign in to comment.