codies/internal/version/version.go

18 lines
343 B
Go

// Package version provides a global version string.
package version
var version string
// Version returns a compile time version string, or "(devel)" if unset.
func Version() string {
if version == "" {
return "(devel)"
}
return version
}
// IsSet returns true if the version has been set.
func IsSet() bool {
return version != ""
}