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 MustCompile ¶
func MustCompile(constraint string) semver.Range
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.
func MustVersion ¶ added in v1.14.0
func MustVersion(version string) semver.Version
MustVersion wraps go-version.NewVersion, panicing when an error is returns (this occurs when the version cannot be parsed).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.