mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-04 23:40:26 +08:00
fix: release version tag
This commit is contained in:
@@ -6,4 +6,11 @@ import "time"
|
||||
const ShowDebugLog = false
|
||||
|
||||
// Version will show in help message to distinguish different builds.
|
||||
var Version = "dev-" + time.Now().Format(time.DateOnly)
|
||||
// Use -ldflags="-X github.com/fumiama/WireGold/config.Version=x.y.z" to override.
|
||||
var Version = "dev"
|
||||
|
||||
func init() {
|
||||
if Version == "dev" {
|
||||
Version = "dev-" + time.Now().Format(time.DateOnly)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user