Versions in this module Expand all Collapse all v2 v2.0.1 Jul 29, 2022 v2.0.0 Feb 4, 2022 Changes in this version + const BinaryRegex + const NumberRegex + var Zero = Number + func ParseMajorMinor(vers string) (int, int, error) + type Binary struct + Arch string + Release string + func MustParseBinary(s string) Binary + func ParseBinary(s string) (Binary, error) + func (b *Binary) SetBSON(raw bson.Raw) error + func (b *Binary) UnmarshalJSON(data []byte) error + func (b *Binary) UnmarshalYAML(unmarshal func(interface{}) error) error + func (b Binary) GetBSON() (interface{}, error) + func (b Binary) MarshalJSON() ([]byte, error) + func (b Binary) MarshalYAML() (interface{}, error) + func (b Binary) String() string + type Number struct + Build int + Major int + Minor int + Patch int + Tag string + func MustParse(s string) Number + func Parse(s string) (Number, error) + func ParseNonStrict(s string) (Number, error) + func (n *Number) SetBSON(raw bson.Raw) error + func (n *Number) UnmarshalJSON(data []byte) error + func (n *Number) UnmarshalYAML(unmarshal func(interface{}) error) error + func (n Number) Compare(other Number) int + func (n Number) GetBSON() (interface{}, error) + func (n Number) MarshalJSON() ([]byte, error) + func (n Number) MarshalYAML() (interface{}, error) + func (n Number) String() string + func (n Number) ToPatch() Number