Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SemVer ¶
type SemVer struct {
// contains filtered or unexported fields
}
SemVer semantic version object via https://semver.org/
func Parse ¶
Parse parses the semantic version string to object. NOTE: If metadata part exists, the separator must not be a number.
func (*SemVer) Compare ¶
Compare compares whether 's' and 'semVer'. The result will be 0 if s==semVer, -1 if s < semVer, and +1 if s > semVer. If compareMetadata==nil, will not compare metadata.
Click to show internal directories.
Click to hide internal directories.