Versions in this module Expand all Collapse all v1 v1.5.0 Sep 11, 2019 Changes in this version + const SemVerRegex + const ValidPrerelease + var ErrInvalidMetadata = errors.New("Invalid Metadata string") + var ErrInvalidPrerelease = errors.New("Invalid Prerelease string") + var ErrInvalidSemVer = errors.New("Invalid Semantic Version") + type Collection []*Version + func (c Collection) Len() int + func (c Collection) Less(i, j int) bool + func (c Collection) Swap(i, j int) + type Constraints struct + func NewConstraint(c string) (*Constraints, error) + func (cs Constraints) Check(v *Version) bool + func (cs Constraints) Validate(v *Version) (bool, []error) + type Version struct + func MustParse(v string) *Version + func NewVersion(v string) (*Version, error) + func (v *Version) Compare(o *Version) int + func (v *Version) Equal(o *Version) bool + func (v *Version) GreaterThan(o *Version) bool + func (v *Version) LessThan(o *Version) bool + func (v *Version) Major() int64 + func (v *Version) MarshalJSON() ([]byte, error) + func (v *Version) Metadata() string + func (v *Version) Minor() int64 + func (v *Version) Original() string + func (v *Version) Patch() int64 + func (v *Version) Prerelease() string + func (v *Version) String() string + func (v *Version) UnmarshalJSON(b []byte) error + func (v Version) IncMajor() Version + func (v Version) IncMinor() Version + func (v Version) IncPatch() Version + func (v Version) SetMetadata(metadata string) (Version, error) + func (v Version) SetPrerelease(prerelease string) (Version, error)