# 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.
IsPseudoVersion reports whether v is a pseudo-version.
IsZeroPseudoVersion returns whether v is a pseudo-version with a zero base, timestamp, and revision, as returned by [ZeroPseudoVersion].
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.
PseudoVersion returns a pseudo-version for the given major version ("v1") preexisting older tagged version ("" or "v1.2.3" or "v1.2.3-pre"), revision time, and revision identifier (usually a 12-byte commit hash prefix).
PseudoVersionBase returns the canonical parent version, if any, upon which the pseudo-version v is based.
PseudoVersionRev returns the revision identifier of the pseudo-version v.
PseudoVersionTime returns the time stamp of the pseudo-version v.
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.
ZeroPseudoVersion returns a pseudo-version with a zero timestamp and revision, which may be used as a placeholder.
# Constants
No description provided by the author
# 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.