Documentation
¶
Index ¶
- Constants
- func ParseStability(stability string) string
- type Constraint
- type Version
- func (a *Version) Compare(b *Version, operator string) bool
- func (a *Version) Equal(b *Version) bool
- func (a *Version) GreaterThan(b *Version) bool
- func (a *Version) GreaterThanOrEqual(b *Version) bool
- func (a *Version) LessThan(b *Version) bool
- func (a *Version) LessThanOrEqual(b *Version) bool
- func (a *Version) NotEqual(b *Version) bool
- func (v *Version) String() string
Constants ¶
View Source
const ( LessThan = iota - 1 Equal GreaterThan )
Variables ¶
This section is empty.
Functions ¶
func ParseStability ¶
Types ¶
type Constraint ¶
type Constraint struct {
// contains filtered or unexported fields
}
func NewConstraint ¶
func NewConstraint(constraint string) (*Constraint, error)
func (*Constraint) Matches ¶
func (c *Constraint) Matches(version *Version) bool
func (*Constraint) String ¶
func (c *Constraint) String() string
type Version ¶
type Version struct {
Major, Minor, Patch, Extra int
PreRelease string
State string
Stability string
Metadata string
Original string
Parsed string
// contains filtered or unexported fields
}
func NewVersion ¶
func NormalizeBranch ¶
func (*Version) GreaterThan ¶
func (*Version) GreaterThanOrEqual ¶
func (*Version) LessThanOrEqual ¶
Click to show internal directories.
Click to hide internal directories.