package
1.22.2
Repository: https://github.com/go-asm/go.git
Documentation: pkg.go.dev

# Functions

CmpInt returns cmp.Compare(x, y) interpreting x and y as decimal numbers.
Compare returns -1, 0, or +1 depending on whether x < y, x == y, or x > y, interpreted as toolchain versions.
DecInt returns the decimal string decremented by 1, or the empty string if the decimal is all zeroes.
IsLang reports whether v denotes the overall Go language version and not a specific release.
IsValid reports whether the version x is valid.
Lang returns the Go language version.
Max returns the maximum of x and y interpreted as toolchain versions, compared using Compare.
Parse parses the Go version string x into a version.

# Structs

A Version is a parsed Go version: major[.Minor[.Patch]][kind[pre]] The numbers are the original decimal strings to avoid integer overflows and since there is very little actual math.