RoadSign/pkg/meta.go
2024-09-29 23:51: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 = "2.1.0"