- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for KnownOS (0.11 sec)
-
src/cmd/go/internal/modindex/syslist.go
// This file is a lightly modified copy go/build/syslist_test.go. package modindex // knownOS is the list of past, present, and future known GOOS values. // Do not remove from this list, as it is used for filename matching. // If you add an entry to this list, look at unixOS, below. var knownOS = map[string]bool{ "aix": true, "android": true, "darwin": true, "dragonfly": true, "freebsd": true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 04 01:45:58 UTC 2023 - 1.9K bytes - Viewed (0) -
src/go/build/syslist.go
// internal/goos/gengoos.go. If you change this file, look at those // files as well. // knownOS is the list of past, present, and future known GOOS values. // Do not remove from this list, as it is used for filename matching. // If you add an entry to this list, look at unixOS, below. var knownOS = map[string]bool{ "aix": true, "android": true, "darwin": true, "dragonfly": true, "freebsd": true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 30 18:50:57 UTC 2023 - 2.1K bytes - Viewed (0) -
src/cmd/go/internal/imports/build.go
l = l[:n-1] } n := len(l) if n >= 2 && KnownOS[l[n-2]] && KnownArch[l[n-1]] { return matchTag(l[n-2], tags, true) && matchTag(l[n-1], tags, true) } if n >= 1 && KnownOS[l[n-1]] { return matchTag(l[n-1], tags, true) } if n >= 1 && KnownArch[l[n-1]] { return matchTag(l[n-1], tags, true) } return true } var KnownOS = map[string]bool{ "aix": true, "android": true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 30 18:50:57 UTC 2023 - 10.4K bytes - Viewed (0) -
src/internal/goos/gengoos.go
"fmt" "log" "os" "strings" ) var gooses []string func main() { data, err := os.ReadFile("../../go/build/syslist.go") if err != nil { log.Fatal(err) } const goosPrefix = `var knownOS = map[string]bool{` inGOOS := false for _, line := range strings.Split(string(data), "\n") { if strings.HasPrefix(line, goosPrefix) { inGOOS = true } else if inGOOS && strings.HasPrefix(line, "}") { break
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 15 21:31:23 UTC 2022 - 1.8K bytes - Viewed (0) -
src/cmd/go/internal/script/conds.go
conds["GOOS"] = PrefixCondition( "runtime.GOOS == <suffix>", func(_ *State, suffix string) (bool, error) { if suffix == runtime.GOOS { return true, nil } if _, ok := imports.KnownOS[suffix]; !ok { return false, fmt.Errorf("unrecognized GOOS %q", suffix) } return false, nil }) conds["GOARCH"] = PrefixCondition( "runtime.GOARCH == <suffix>",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 5K bytes - Viewed (0) -
src/cmd/go/internal/modindex/build.go
if n := len(l); n > 0 && l[n-1] == "test" { l = l[:n-1] } n := len(l) if n >= 2 && knownOS[l[n-2]] && knownArch[l[n-1]] { if allTags != nil { // In case we short-circuit on l[n-1]. allTags[l[n-2]] = true } return ctxt.matchTag(l[n-1], allTags) && ctxt.matchTag(l[n-2], allTags) } if n >= 1 && (knownOS[l[n-1]] || knownArch[l[n-1]]) { return ctxt.matchTag(l[n-1], allTags) } return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 17:39:23 UTC 2023 - 26.8K bytes - Viewed (0) -
src/go/build/build.go
if n := len(l); n > 0 && l[n-1] == "test" { l = l[:n-1] } n := len(l) if n >= 2 && knownOS[l[n-2]] && knownArch[l[n-1]] { if allTags != nil { // In case we short-circuit on l[n-1]. allTags[l[n-2]] = true } return ctxt.matchTag(l[n-1], allTags) && ctxt.matchTag(l[n-2], allTags) } if n >= 1 && (knownOS[l[n-1]] || knownArch[l[n-1]]) { return ctxt.matchTag(l[n-1], allTags) } return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62.3K bytes - Viewed (0)