MCPcopy Create free account
hub / github.com/rsc/tmp / Compare

Function Compare

gorebuild/gover.go:22–45  ·  view source on GitHub ↗

Compare returns -1, 0, or +1 depending on whether x < y, x == y, or x > y, interpreted as toolchain versions. The versions x and y must begin with a "go" prefix: "go1.21" not "1.21". Malformed versions compare less than well-formed versions and equal to each other. The language version "go1.21" comp

(x, y string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

BootstrapVersionFunction · 0.70
RunFunction · 0.70

Calls 2

parseFunction · 0.85
cmpIntFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…