You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
295 B

package version
const Maj = "0"
const Min = "12"
const Fix = "0"
var (
// The full version string
Version = "0.12.0"
// GitCommit is set with --ldflags "-X main.gitCommit=$(git rev-parse HEAD)"
GitCommit string
)
func init() {
if GitCommit != "" {
Version += "-" + GitCommit[:8]
}
}