# README
Go-versions module
cloned from https://github.com/hashicorp/[email protected]
Changes
*allow underscores
# Functions
Must is a helper that wraps a call to a function returning (*Version, error) and panics if error is non-nil.
MustConstraints is a helper that wraps a call to a function returning (Constraints, error) and panics if error is non-nil.
NewConstraint will parse one or more constraints from the given constraint string.
NewSemver parses the given version and returns a new Version that adheres strictly to SemVer specs https://semver.org/.
NewVersion parses the given version and returns a new Version.
# Constants
SemverRegexpRaw requires a separator between version and prerelease.
The raw regular expression string used for testing the validity of a version.
# Structs
Constraint represents a single constraint for a version, such as ">= 1.0".
Version represents a single version.
# Type aliases
Collection is a type that implements the sort.Interface interface so that versions can be sorted.
Constraints is a slice of constraints.