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 branch 'dev' of git://github.com/Bytom/bytom
[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
// GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)"
11
GitCommit string
12
)
13
14
func init() {
15
if GitCommit != "" {
16
Version += "-" + GitCommit[:8]
17
}
18
}