Documentation
¶
Overview ¶
Semantic Versioning 2.0.0
Index ¶
- Variables
- func Compare(v1, v2 string) (int, error)
- func IsValid(v string) bool
- func Sort(slice []SemVer)
- func SortStr(slice []string) error
- type SemVer
- func (s SemVer) Compare(other SemVer) int
- func (s SemVer) IsEquql(o SemVer) bool
- func (s SemVer) IsGrater(o SemVer) bool
- func (s SemVer) IsGraterOrEquql(o SemVer) bool
- func (s SemVer) IsLess(o SemVer) bool
- func (s SemVer) IsLessOrEquql(o SemVer) bool
- func (s SemVer) IsPreRelease() bool
- func (s SemVer) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidSemVerSyntax = errors.New("invalid semver syntax")
)
Functions ¶
Types ¶
type SemVer ¶
func (SemVer) Compare ¶ added in v1.1.0
Compare returns
-1 if this is less than other, 0 if this equals other, +1 if this is greater than other.
func (SemVer) IsGraterOrEquql ¶
func (SemVer) IsLessOrEquql ¶
func (SemVer) IsPreRelease ¶
Click to show internal directories.
Click to hide internal directories.