Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Major is the position in the slice of the major value. Major = iota // Minor is the position in the slice of the minor value. Minor // Patch is the position in the slice of the patch value. Patch // Pre is the position in the slice of the pre value. Pre // RegExPatternVersionString is the RegEX to parse the version string and detected the major, minor, patch and pre version. RegExPatternVersionString = `((\d+)\.(\d+)\.(\d+))(?:-RC\.?([\dA-Za-z\-]+(?:\.[\dA-Za-z\-]+)*))?` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version []uint
Version is the abstraction of the version.
func (Version) Increase ¶
Increase increase the semantic version by the values of major, minor, patch and pre.
func (*Version) IncreasePre ¶
IncreasePre increase the release candidate value of the version.
func (Version) IsReleaseCandidate ¶
IsReleaseCandidate validates the version for a release candidate.
Click to show internal directories.
Click to hide internal directories.