Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorNoFilter = errors.New("semver: Filter: no filter provided") ErrorEmptyFilter = errors.New("semver: Filter: empty filter") ErrorPrereleaseDisallowed = errors.New("semver: Filter: ^ filter must not have prerelease identifiers") )
View Source
var ( ErrorIncompleteVersionCore = errors.New("semver: Parse: incomplete version core") ErrorLeadingZero = errors.New("semver: Parse: leading zeros are disallowed") ErrorEmptyPrereleaseIdentifier = errors.New("semver: Parse: empty prerelease identifier") ErrorEmptyBuildIdentifier = errors.New("semver: Parse: empty build identifier") )
Functions ¶
Types ¶
type Version ¶
func (*Version) CompareTo ¶
CompareTo compares two instances of Version. If the return value is 0, the versions are equal. 1 is v > vx, -1 is v < vx, 0 is v == vx
func (*Version) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Version) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
Source Files
¶
Click to show internal directories.
Click to hide internal directories.