Documentation ¶
Index ¶
- Variables
- type Constraints
- type Version
- func (v *Version) Compare(o *Version) int
- func (v *Version) DataType(driver string) string
- func (v *Version) Equal(o *Version) bool
- func (v *Version) GreaterThan(o *Version) bool
- func (v Version) IncrMajor() *Version
- func (v Version) IncrMinor() *Version
- func (v Version) IncrPatch() *Version
- func (v *Version) LessThan(o *Version) bool
- func (v Version) Major() uint64
- func (v Version) MarshalJSON() ([]byte, error)
- func (v Version) MarshalText() ([]byte, error)
- func (v Version) Metadata() string
- func (v Version) Minor() uint64
- func (v Version) Patch() uint64
- func (v Version) Prerelease() string
- func (v *Version) Scan(value interface{}) error
- func (v Version) String() string
- func (v *Version) UnmarshalJSON(b []byte) error
- func (v *Version) UnmarshalText(b []byte) error
- func (v Version) Value() (driver.Value, error)
- func (v Version) WithBuildMetadata(buildMetadata string) (*Version, error)
- func (v Version) WithPrerelease(prerelease string) (*Version, error)
- type Versions
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Constraints ¶
type Constraints struct {
// contains filtered or unexported fields
}
func NewConstraint ¶
func NewConstraint(c string) (*Constraints, error)
func (Constraints) Check ¶
func (cs Constraints) Check(v *Version) bool
func (Constraints) String ¶
func (cs Constraints) String() string
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
func MustParseVersion ¶
func ParseVersion ¶
func (*Version) GreaterThan ¶
func (Version) MarshalJSON ¶
func (Version) MarshalText ¶
func (Version) Prerelease ¶
func (*Version) UnmarshalJSON ¶
func (*Version) UnmarshalText ¶
func (Version) WithBuildMetadata ¶
Click to show internal directories.
Click to hide internal directories.