Versions in this module Expand all Collapse all v0 v0.1.1 Oct 16, 2020 v0.1.0 Aug 27, 2020 Changes in this version + const CompareEqualFlag + const CompareLargeFlag + const CompareLessFlag + const ErrInvalidMajorVersion + const ErrInvalidMinorVersion + const ErrInvalidPatchVersion + const ErrInvalidPreReleaseVersion + const ErrInvalidVersionFormat + const PRStageAlpha + const PRStageBeta + const PRStageRC + const PRStageRelease + type CtorConfig struct + MajorV uint + MinorV uint + PRBuild uint8 + PRStage uint8 + PRVersion uint8 + PatchV uint + func (config CtorConfig) ToRawVersion() string + type SemVer struct + func New(config CtorConfig) (semVer *SemVer, err error) + func ParseVersion(rawVer string) (semVer *SemVer, parseErr error) + func (ver *SemVer) Compare(ver2 interface{}) int + func (ver *SemVer) MajorVersion() uint + func (ver *SemVer) MinorVersion() uint + func (ver *SemVer) PRBuild() uint8 + func (ver *SemVer) PRStage() uint8 + func (ver *SemVer) PRVersion() uint8 + func (ver *SemVer) PatchVersion() uint + func (ver *SemVer) StageSafetyLooseCompare(ver2 interface{}) int + func (ver *SemVer) StageSafetyStrictCompare(ver2 interface{}) int + func (ver *SemVer) String() string