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 = "2.1.0"
|