Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Constraint ¶
type Constraint []constraint
Constraint represents a version constraint.
func NewConstraint ¶
func NewConstraint(v string) (Constraint, error)
NewConstraint returns a new version constraint.
func (Constraint) Check ¶
func (c Constraint) Check(v string) bool
Check returns true if the version satisfies the constraint.
Click to show internal directories.
Click to hide internal directories.