Source file
src/go/build/syslist.go
1
2
3
4
5 package build
6
7
8
9
10
11
12
13
14 var knownOS = map[string]bool{
15 "aix": true,
16 "android": true,
17 "darwin": true,
18 "dragonfly": true,
19 "freebsd": true,
20 "hurd": true,
21 "illumos": true,
22 "ios": true,
23 "js": true,
24 "linux": true,
25 "nacl": true,
26 "netbsd": true,
27 "openbsd": true,
28 "plan9": true,
29 "solaris": true,
30 "wasip1": true,
31 "windows": true,
32 "zos": true,
33 }
34
35
36
37
38
39 var unixOS = map[string]bool{
40 "aix": true,
41 "android": true,
42 "darwin": true,
43 "dragonfly": true,
44 "freebsd": true,
45 "hurd": true,
46 "illumos": true,
47 "ios": true,
48 "linux": true,
49 "netbsd": true,
50 "openbsd": true,
51 "solaris": true,
52 }
53
54
55
56 var knownArch = map[string]bool{
57 "386": true,
58 "amd64": true,
59 "amd64p32": true,
60 "arm": true,
61 "armbe": true,
62 "arm64": true,
63 "arm64be": true,
64 "loong64": true,
65 "mips": true,
66 "mipsle": true,
67 "mips64": true,
68 "mips64le": true,
69 "mips64p32": true,
70 "mips64p32le": true,
71 "ppc": true,
72 "ppc64": true,
73 "ppc64le": true,
74 "riscv": true,
75 "riscv64": true,
76 "s390": true,
77 "s390x": true,
78 "sparc": true,
79 "sparc64": true,
80 "wasm": true,
81 }
82
View as plain text