Documentation
¶
Index ¶
Constants ¶
View Source
const ( VersionMajor = 2022 // Major version component of the current release VersionMinor = 99 // Minor version component of the current release VersionMicro = 99 // Patch version component of the current release VersionModifier = "dev" // Modifier component of the current release VersionKeyCreated = "AmcVersionCreated" VersionKeyFinished = "AmcVersionFinished" )
Variables ¶
View Source
var ( MajorVersionNumber = 0 MinorVersionNumber = 8 RevisionNumber = 1 BuildNumber string BuildTime string GoVersion string )
View Source
var ( // Following vars are injected through the build flags (see Makefile) GitCommit string GitBranch string GitTag string )
View Source
var Version = func() string { return fmt.Sprintf("%d.%02d.%d", VersionMajor, VersionMinor, VersionMicro) }()
Version holds the textual version string.
View Source
var VersionWithMeta = func() string { v := Version if VersionModifier != "" { v += "-" + VersionModifier } return v }()
VersionWithMeta holds the textual version string including the metadata.
Functions ¶
func FormatVersion ¶
func FormatVersion() string
func PrintVersion ¶
func PrintVersion()
func Versionbak ¶
func Versionbak() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.