1
0
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:
源文雨
2026-04-11 16:05:14 +08:00
parent f0a3440dfb
commit 3da0369a5f

View File

@@ -6,4 +6,11 @@ import "time"
const ShowDebugLog = false const ShowDebugLog = false
// Version will show in help message to distinguish different builds. // 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)
}
}