Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SemverRegex = `` /* 178-byte string literal not displayed */
Functions ¶
This section is empty.
Types ¶
type Semver ¶
type Semver struct { Major int `validate:"gte=0"` Minor int `validate:"gte=0"` Patch int `validate:"gte=0"` BuildMetadata string `validate:"omitempty,alphanumunicode"` }
func NewSemverFromGitTag ¶
NewSemverFromGitTag returns a semver struct corresponding to the Git annotated tag used as an input.
func (Semver) NormalVersion ¶
func (Semver) Precedence ¶
Precedence returns an integer representing which of the two versions s1 or s2 is the most recent. 1 meaning s1 is the most recent, -1 that it is s2 and 0 that they are equal.
Click to show internal directories.
Click to hide internal directories.