- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for maybeToolchainVersion (0.5 sec)
-
src/cmd/go/internal/gover/mod.go
// than most modules (semver). func ModCompare(path string, x, y string) int { if path == "go" { return Compare(x, y) } if path == "toolchain" { return Compare(maybeToolchainVersion(x), maybeToolchainVersion(y)) } return semver.Compare(x, y) } // ModSort is like module.Sort but understands the "go" and "toolchain" // modules and their version ordering. func ModSort(list []module.Version) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 19:18:46 UTC 2023 - 3.4K bytes - Viewed (0) -
src/cmd/go/internal/gover/toolchain.go
} else { return "" } // Some builds use custom suffixes; strip them. if i := strings.IndexAny(v, " \t-"); i >= 0 { v = v[:i] } if !IsValid(v) { return "" } return v } func maybeToolchainVersion(name string) string { if IsValid(name) { return name } return FromToolchain(name) } // ToolchainMax returns the maximum of x and y interpreted as toolchain names,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 23:20:32 UTC 2023 - 3K bytes - Viewed (0)