version

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL