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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-29 15:51:05 +00:00
|
|
|
var AppVersion = "2.1.0"
|