LittleSheep
0d8583e395
All checks were successful
release-nightly / build-docker (push) Successful in 1m2s
18 lines
263 B
Go
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"
|