Documentation ¶
Overview ¶
Package versioncheck provides utility wrappers for go-version, allowing the constraints to be used as global variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compile ¶
func Compile(constraint string) (go_version.Constraints, error)
Compile trivially wraps go-version.NewConstraint, returning the constraint and error
func MustCompile ¶
func MustCompile(constraint string) go_version.Constraints
MustCompile wraps go-version.NewConstraint, panicing when an error is returns (this occurs when the constraint cannot be parsed). It is intended to be use similar to re.MustCompile, to ensure unparseable constraints are caught in testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.