RoadSign/pkg/meta.go
LittleSheep 0d8583e395
All checks were successful
release-nightly / build-docker (push) Successful in 1m2s
Detailed version
2023-12-13 20:00:05 +08:00

18 lines
263 B
Go

package roadsign
import (
"runtime/debug"
)
func init() {
if info, ok := debug.ReadBuildInfo(); ok {
for _, setting := range info.Settings {
if setting.Key == "vcs.revision" {
AppVersion += "#" + setting.Value
}
}
}
}
var AppVersion = "1.2.1"