- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for GoModLookup (0.41 sec)
-
src/cmd/go/internal/gover/gomod.go
"bytes" "strings" ) var nl = []byte("\n") // GoModLookup takes go.mod or go.work content, // finds the first line in the file starting with the given key, // and returns the value associated with that key. // // Lookup should only be used with non-factored verbs // such as "go" and "toolchain", usually to find versions // or version-like strings. func GoModLookup(gomod []byte, key string) string { for len(gomod) > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 16:31:25 UTC 2023 - 1.1K bytes - Viewed (0)