package
0.0.0-20240624235250-9e89dfb7520d
Repository: https://github.com/tailscale/pkgsitelib.git
Documentation: pkg.go.dev

# Functions

ForSorting returns a string that encodes version, so that comparing two such strings follows SemVer precedence, https://semver.org clause 11.
IsIncompatible reports whether a valid version v is an incompatible version.
IsPseudo reports whether a valid version v is a pseudo-version.
Later reports whether v1 is later than v2, using semver but preferring release versions to pre-release versions, and both to pseudo-versions.
LatestOf returns the latest version of a module from a list of versions, using the go command's definition of latest: semver is observed, except that release versions are preferred to prerelease, and both are preferred to pseudo-versions.
LatestVersion finds the latest version of a module using the same algorithm as the Go command.
ParseType returns the Type of a given a version.
RemoveIf returns a copy of s that omits all values for which f returns true.

# Constants

Latest signifies the latest available version in requests to the proxy client.
Main represents the main branch.
Master represents the master branch.
TypePrerelease is a version with a prerelease.
TypePseudo appears to have a prerelease of the form <commit date>-<commit hash>.
TypeRelease is a normal release.

# Type aliases

Type defines the version types a module can have.