| 1 | // Copyright 2023 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | //go:build go1.22 |
| 6 | |
| 7 | package main |
| 8 | |
| 9 | // knownOS is the list of past, present, and future known GOOS values. |
| 10 | // Do not remove from this list, as it is used for filename matching. |
| 11 | // If you add an entry to this list, look at unixOS, below. |
| 12 | var knownOS = map[string]bool{ |
| 13 | "aix": true, |
| 14 | "android": true, |
| 15 | "darwin": true, |
| 16 | "dragonfly": true, |
| 17 | "freebsd": true, |
| 18 | "hurd": true, |
| 19 | "illumos": true, |
| 20 | "ios": true, |
| 21 | "js": true, |
| 22 | "linux": true, |
| 23 | "nacl": true, |
| 24 | "netbsd": true, |
| 25 | "openbsd": true, |
| 26 | "plan9": true, |
| 27 | "solaris": true, |
| 28 | "wasip1": true, |
| 29 | "windows": true, |
| 30 | "zos": true, |
| 31 | } |
| 32 | |
| 33 | // knownArch is the list of past, present, and future known GOARCH values. |
| 34 | // Do not remove from this list, as it is used for filename matching. |
| 35 | var knownArch = map[string]bool{ |
| 36 | "386": true, |
| 37 | "amd64": true, |
| 38 | "amd64p32": true, |
| 39 | "arm": true, |
| 40 | "armbe": true, |
| 41 | "arm64": true, |
| 42 | "arm64be": true, |
| 43 | "loong64": true, |
| 44 | "mips": true, |
| 45 | "mipsle": true, |
| 46 | "mips64": true, |
| 47 | "mips64le": true, |
| 48 | "mips64p32": true, |
| 49 | "mips64p32le": true, |
| 50 | "ppc": true, |
| 51 | "ppc64": true, |
| 52 | "ppc64le": true, |
| 53 | "riscv": true, |
| 54 | "riscv64": true, |
| 55 | "s390": true, |
| 56 | "s390x": true, |
| 57 | "sparc": true, |
| 58 | "sparc64": true, |
| 59 | "wasm": true, |
| 60 | } |