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 #801 from Bytom/version
[bytom/bytom.git]
/
version
/
version.go
1
package version
2
3
var (
4
// The full version string
5
Version = "0.5.1"
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
}