Versions in this module Expand all Collapse all v3 v3.2.2 Jun 12, 2021 v3.2.1 Dec 31, 2019 Changes in this version + func Compare(a, b Version) int + func Satisfies(aVersion, aRange string) (bool, error) + type InvalidStringValue string + func (e InvalidStringValue) Error() string + func (e InvalidStringValue) IsInvalid() bool + type Range struct + func NewRange(str []byte) (Range, error) + func (r Range) Contains(v Version) bool + func (r Range) GetLowerBoundary() *Version + func (r Range) GetUpperBoundary() *Version + func (r Range) IsSatisfiedBy(v Version) bool + type Version struct + func MustParse(str string) Version + func NewVersion(str []byte) (Version, error) + func (t *Version) Parse(str string) error + func (t *Version) Scan(src interface{}) error + func (t *Version) UnmarshalBinary(b []byte) error + func (t *Version) UnmarshalJSON(b []byte) error + func (t *Version) UnmarshalText(b []byte) error + func (t Version) Bytes() []byte + func (t Version) IsAPreRelease() bool + func (t Version) Less(o Version) bool + func (t Version) LimitedEqual(o Version) bool + func (t Version) Major() int + func (t Version) MarshalBinary() ([]byte, error) + func (t Version) MarshalJSON() ([]byte, error) + func (t Version) MarshalText() ([]byte, error) + func (t Version) Minor() int + func (t Version) NextVersions(minReleaseType int, numberedPre bool) []*Version + func (t Version) Patch() int + func (t Version) String() string + func (t Version) Value() (interface{}, error) + type VersionPtrs []*Version + func (p VersionPtrs) Len() int + func (p VersionPtrs) Less(i, j int) bool + func (p VersionPtrs) Sort() + func (p VersionPtrs) Swap(i, j int)