status-go/cmd/status/main.go

22 lines
491 B
Go
Raw Normal View History

package main
import (
"fmt"
"github.com/status-im/status-go/geth"
"github.com/status-im/status-go/geth/params"
2016-06-20 14:47:10 +00:00
)
var (
gitCommit = "rely on linker: -ldflags -X main.GitCommit"
buildStamp = "rely on linker: -ldflags -X main.buildStamp"
)
2016-06-20 15:21:45 +00:00
func main() {
netVersion := "mainnet"
if geth.UseTestnet {
netVersion = "testnet"
}
fmt.Printf("%s\nVersion: %s\nGit Commit: %s\nBuild Date: %s\nNetwork: %s\n",
geth.ClientIdentifier, params.Version, gitCommit, buildStamp, netVersion)
2016-06-20 15:21:45 +00:00
}