1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-04 23:40:26 +08:00
Files
WireGold/config/global.go
2026-04-11 16:05:14 +08:00

17 lines
376 B
Go

package config
import "time"
// ShowDebugLog turn on to print verbose logs.
const ShowDebugLog = false
// Version will show in help message to distinguish different builds.
// 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)
}
}