Skip to content

Commit

Permalink
change version output.
Browse files Browse the repository at this point in the history
  • Loading branch information
jolestar committed Nov 23, 2016
1 parent 4f23f60 commit 9168b77
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"net/http"
_ "net/http/pprof"
"os"
"runtime"
"time"
)

Expand All @@ -23,8 +24,10 @@ func main() {
flag.Parse()

if printVersion {
fmt.Printf("version: %s\n", VERSION)
fmt.Printf("git version: %s\n", GIT_VERSION)
fmt.Printf("Metad Version: %s\n", VERSION)
fmt.Printf("Git Version: %s\n", GIT_VERSION)
fmt.Printf("Go Version: %s\n", runtime.Version())
fmt.Printf("Go OS/Arch: %s/%s\n", runtime.GOOS, runtime.GOARCH)
os.Exit(0)
}

Expand Down

0 comments on commit 9168b77

Please sign in to comment.