tendermint/version/version.go

26 lines
365 B
Go
Raw Normal View History

2016-01-20 13:25:26 -08:00
package version
2017-05-09 02:37:59 -07:00
import (
"fmt"
)
2016-01-20 13:25:26 -08:00
const Maj = "0"
2017-04-26 17:06:45 -07:00
const Min = "10"
const Fix = "0"
2016-01-20 13:25:26 -08:00
2017-05-09 02:37:59 -07:00
var (
// The full version string
Version = "0.10.0"
// GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)"
GitCommit string
)
func init() {
Version = fmt.Sprintf("%d.%d.%d", Maj, Min, Fix)
if GitCommit != "" {
Version += "-" + GitCommit[:8]
}
}