Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var VersionInput string
Functions ¶
func GetProgramVersion ¶ added in v0.0.5
func GetProgramVersion() *semver.Version
GetProgramVersion returns the program version as a *semver.Version object. It retrieves the build metadata from the debug build info and constructs a semver version object using the provided VersionInput. If the VersionInput is invalid, it creates a development version with build metadata. If the build metadata is available, it sets the metadata for the version object. Returns the constructed version object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.