Documentation
¶
Index ¶
Constants ¶
View Source
const NoCommit = "NOCOMMIT"
View Source
const NoSemver = "NOSEMVER"
Variables ¶
View Source
var Semver string = NoSemver
Functions ¶
func CompareVersions ¶
CompareVersions compares two Version structs based on their Semver fields. It returns -1 if v1 < v2, 0 if v1 == v2, and 1 if v1 > v2. If either version has NoSemver, it returns 2.
Types ¶
type Version ¶
func GetVersion ¶
func GetVersion() *Version
func NewVersion ¶
func (*Version) VersionString ¶
Click to show internal directories.
Click to hide internal directories.