1// Package moxvar provides the version number of a mox build.
8// Version is set at runtime based on the Go module used to build.
12 buildInfo, ok := debug.ReadBuildInfo()
16 Version = buildInfo.Main.Version
17 if Version == "(devel)" {
18 var vcsRev, vcsMod string
19 for _, setting := range buildInfo.Settings {
20 if setting.Key == "vcs.revision" {
21 vcsRev = setting.Value
22 } else if setting.Key == "vcs.modified" {
23 vcsMod = setting.Value
33 Version += "+modifications"