# Functions
CanonicalVersion returns the canonical form of the version string v.
Check checks that a given module path, version pair is valid.
CheckFilePath checks that a slash-separated file path is valid.
CheckImportPath checks that an import path is valid.
CheckPath checks that a module path is valid.
CheckPathMajor returns a non-nil error if the semantic version v does not match the path major version pathMajor.
EscapePath returns the escaped form of the given module path.
EscapeVersion returns the escaped form of the given module version.
MatchPathMajor reports whether the semantic version v matches the path major version pathMajor.
MatchPrefixPatterns reports whether any path prefix of target matches one of the glob patterns (as defined by path.Match) in the comma-separated globs list.
PathMajorPrefix returns the major-version tag prefix implied by pathMajor.
Sort sorts the list by Path, breaking ties by comparing Version fields.
SplitPathVersion returns prefix and major version such that prefix+pathMajor == path and version is either empty or "/vN" for N >= 2.
UnescapePath returns the module path for the given escaped path.
UnescapeVersion returns the version string for the given escaped version.
VersionError returns a ModuleError derived from a Version and error, or err itself if it is already such an error.
# Structs
An InvalidPathError indicates a module, import, or file path doesn't satisfy all naming constraints.
An InvalidVersionError indicates an error specific to a version, with the module path unknown or specified externally.
A ModuleError indicates an error specific to a module.
A Version (for clients, a module.Version) is defined by a module path and version pair.