RoadSign/pkg/meta.go

18 lines
263 B
Go
Raw Normal View History

2023-11-16 15:06:59 +00:00
package roadsign
2023-12-13 12:00:05 +00:00
import (
"runtime/debug"
2023-11-16 15:06:59 +00:00
)
2023-12-13 12:00:05 +00:00
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"