package
0.0.0-20190912100236-53e5711c875d
Repository: https://github.com/tsaikd/tools.git
Documentation: pkg.go.dev

# Functions

CanonicalVersion returns the canonical form of the version string v.
Check checks that a given module path, version pair is valid.
CheckFilePath checks whether a slash-separated file path is valid.
CheckImportPath checks that an import path is valid.
CheckPath checks that a module path is valid.
DecodePath returns the module path of the given safe encoding.
DecodeVersion returns the version string for the given safe encoding.
EncodePath returns the safe encoding of the given module path.
EncodeVersion returns the safe encoding of the given module version.
MatchPathMajor reports whether the semantic version v matches the path major version pathMajor.
Sort sorts the list by Path, breaking ties by comparing Versions.
SplitPathVersion returns prefix and major version such that prefix+pathMajor == path and version is either empty or "/vN" for N >= 2.

# Structs

A Version is defined by a module path and version pair.