OSDN Git Service
(root)
/
bytom
/
bytom.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
91cd180d1a96431857d90e18b308325db65ac426
[bytom/bytom.git]
/
version
/
version.go
1
package version
2
3
var (
4
// The full version string
5
Version = "1.0.4"
6
// GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)"
7
GitCommit string
8
)
9
10
func init() {
11
if GitCommit != "" {
12
Version += "-" + GitCommit[:8]
13
}
14
}