OSDN Git Service

Merge branch 'master' of https://github.com/Bytom/bytom-btmhash
[bytom/bytom.git] / version / version.go
1 package version
2
3 const Maj = "0"
4 const Min = "1"
5 const Fix = "2"
6
7 var (
8         // The full version string
9         Version = "0.1.2"
10
11         // GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)"
12         GitCommit string
13 )
14
15 func init() {
16         if GitCommit != "" {
17                 Version += "-" + GitCommit[:8]
18         }
19 }