Documentation
¶
Overview ¶
Package version provides shared utilities for manipulating Go semantic versions with no prefix.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Canonical ¶
Canonical returns the canonical, unprefixed form of the version v, which should be an unprefixed semantic version. Unlike semver.Canonical, this function preserves build tags.
func IsCommitHash ¶
func SemverToGoTag ¶
SemverToGoTag returns the Go standard library repository tag for the given unprefixed semver version. Go tags differ from standard semantic versions in a few ways, such as beginning with "go" instead of "v".
func TrimPrefix ¶
TrimPrefix removes the 'v' or 'go' prefix from the given semantic version v.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.