Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrPartsCount = "parts count error: %v vs %v" ErrVersionsAreIncomparable = "versions are incomparable: %v vs %v" )
View Source
const (
VersionFormat = "v%d.%d.%d%s"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
func CleanVersions ¶
CleanVersions filters an array of versions leaving only clean versions.
func LatestVersion ¶
LatestVersion returns the latest version of specified versions.
func (*Version) IsClean ¶
IsClean checks whether the version has only numeric information without any postfixes. For example, 'v0.1.2' version is clean, but 'v0.1.2-rc5' is not clean.
func (*Version) IsGreaterThan ¶
IsGreaterThan tells if the version is greater than a specified version.
Click to show internal directories.
Click to hide internal directories.