OSDN Git Service
(root)
/
bytom
/
bytom.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #56 from liuchengxu/log
[bytom/bytom.git]
/
version
/
version.go
1
package version
2
3
const Maj = "0"
4
const Min = "5"
5
const Fix = "0"
6
7
var (
8
// The full version string
9
Version = "0.5.0"
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
}