const runtime.GOOS
157 uses
runtime (current package)
cgocall.go#L135: if !iscgo && GOOS != "solaris" && GOOS != "illumos" && GOOS != "windows" {
cpuprof.go#L248: if GOOS == "darwin" || GOOS == "ios" {
env_posix.go#L25: if GOOS == "windows" { // case insensitive
extern.go#L380: const GOOS string = goos.GOOS
malloc.go#L619: case GOARCH == "arm64" && GOOS == "ios":
malloc.go#L625: case GOOS == "aix":
malloc.go#L1039: const sizeSpecializedMallocEnabled = goexperiment.SizeSpecializedMalloc && GOOS != "plan9" && !asanenabled && !raceenabled && !msanenabled && !valgrindenabled
mem.go#L207: case GOOS == "windows":
mheap.go#L55: physPageAlignedStacks = GOOS == "openbsd"
netpoll.go#L348: if GOOS == "solaris" || GOOS == "illumos" || GOOS == "aix" || GOOS == "wasip1" {
panic.go#L1645: if GOOS == "windows" && mp.libcallsp != 0 {
proc.go#L225: if GOOS != "windows" {
proc.go#L652: const crashStackImplemented = GOOS != "windows"
proc.go#L796: switch GOOS {
proc.go#L1033: if iscgo || GOOS == "solaris" || GOOS == "illumos" || GOOS == "windows" {
proc.go#L1108: osHasLowResTimer = GOOS == "windows" || GOOS == "openbsd" || GOOS == "netbsd"
proc.go#L1832: switch GOOS {
proc.go#L1842: switch GOOS {
proc.go#L1955: if (iscgo || GOOS == "windows") && !cgoHasExtraM {
proc.go#L2073: if GOOS == "darwin" || GOOS == "ios" {
proc.go#L2386: if (iscgo || GOOS == "windows") && !cgoHasExtraM {
proc.go#L2692: if GOOS == "windows" || GOOS == "plan9" {
proc.go#L2873: if gp := getg(); gp != nil && gp.m != nil && (gp.m.lockedExt != 0 || gp.m.incgo) && GOOS != "plan9" {
proc.go#L4015: if GOOS != "plan9" { // Temporary workaround - see issue #42303.
proc.go#L4561: if GOOS != "plan9" { // See golang.org/issue/22227.
proc.go#L5258: if GOOS == "darwin" || GOOS == "ios" {
proc.go#L5624: if atomic.Load(&newmHandoff.haveTemplateThread) == 0 && GOOS != "plan9" {
proc.go#L5773: if GOARCH == "arm" && goarm < 7 && GOOS == "linux" && pc&0xffff0000 == 0xffff0000 {
runtime1.go#L74: if GOOS == "windows" {
runtime1.go#L411: if GOOS == "linux" {
runtime1.go#L574: if GOOS == "windows" {
signal_amd64.go#L53: if GOOS == "darwin" && sig == _SIGFPE && gp.sigcode0 == 0 {
signal_unix.go#L166: if (GOOS == "linux" || GOOS == "android") && !iscgo && sig == sigPerThreadSyscall {
signal_unix.go#L356: if GOOS == "darwin" || GOOS == "ios" {
signal_unix.go#L372: if GOOS == "darwin" || GOOS == "ios" {
signal_unix.go#L377: if GOOS == "darwin" || GOOS == "ios" {
signal_unix.go#L389: if GOOS == "darwin" || GOOS == "ios" {
signal_unix.go#L456: if GOOS == "darwin" || GOOS == "ios" {
signal_unix.go#L682: if (GOOS == "linux" || GOOS == "android") && sig == sigPerThreadSyscall {
signal_unix.go#L1040: if GOOS != "freebsd" && (isarchive || islibrary) && handler == _SIG_DFL && !c.sigFromUser() {
signal_unix.go#L1196: if (GOOS == "darwin" || GOOS == "ios") && sig == _SIGPIPE {
signal_unix.go#L1263: if GOOS == "linux" && iscgo {
sigqueue.go#L112: if GOOS == "darwin" || GOOS == "ios" {
sigqueue.go#L148: if GOOS == "darwin" || GOOS == "ios" {
sigqueue.go#L204: if GOOS == "darwin" || GOOS == "ios" {
string.go#L495: if GOOS == "plan9" {
symtab.go#L649: if GOOS == "aix" && isarchive {
tagptr_64bit.go#L79: if GOOS == "aix" {
traceback.go#L191: if GOARCH == "arm" && goarm < 7 && GOOS == "linux" && frame.pc&0xffff0000 == 0xffff0000 {
type.go#L111: if GOOS == "aix" {
crypto/internal/fips140
fips140.go#L55: runtime.GOOS == "windows" && runtime.GOARCH == "386",
fips140.go#L56: runtime.GOOS == "openbsd", // due to -fexecute-only, see #70880
fips140.go#L57: runtime.GOOS == "aix":
fips140.go#L58: return errors.New("FIPS 140-3 mode is not supported on " + runtime.GOOS + "-" + runtime.GOARCH)
crypto/internal/sysrand
rand_getrandom.go#L37: if runtime.GOOS == "solaris" {
crypto/tls
common.go#L1884: if runtime.GOOS == "windows" || runtime.GOOS == "darwin" || runtime.GOOS == "ios" {
crypto/x509
verify.go#L559: if runtime.GOOS == "windows" || runtime.GOOS == "darwin" || runtime.GOOS == "ios" {
github.com/gotd/td/telegram/internal/manager
device.go#L48: set(&c.SystemVersion, runtime.GOOS)
golang.org/x/sys/cpu
cpu_x86.go#L171: if runtime.GOOS == "darwin" {
internal/poll
sendfile_unix.go#L31: if goos := runtime.GOOS; goos == "linux" || goos == "android" {
sendfile_unix.go#L134: switch runtime.GOOS {
writev.go#L33: if runtime.GOOS == "aix" || runtime.GOOS == "solaris" {
internal/syscall/unix
eaccess.go#L15: if runtime.GOOS == "android" {
net
cgo_unix.go#L192: if runtime.GOOS == "freebsd" {
conf.go#L74: confVal = &conf{goos: runtime.GOOS}
conf.go#L142: switch runtime.GOOS {
conf.go#L159: if runtime.GOOS == "openbsd" && os.Getenv("ASR_CONFIG") != "" {
conf.go#L168: switch runtime.GOOS {
conf.go#L201: if runtime.GOOS == "plan9" {
dnsclient_unix.go#L407: switch runtime.GOOS {
fd_unix.go#L67: if runtime.GOOS == "solaris" || runtime.GOOS == "illumos" {
ipsock.go#L51: switch runtime.GOOS {
ipsock_posix.go#L29: switch runtime.GOOS {
ipsock_posix.go#L54: switch runtime.GOOS {
ipsock_posix.go#L160: switch runtime.GOOS {
net/http
h2_bundle.go#L4764: if runtime.GOOS == "windows" {
os
dir_unix.go#L116: if ino == 0 && runtime.GOOS != "linux" && runtime.GOOS != "wasip1" {
eloop_other.go#L20: if runtime.GOOS == "dragonfly" {
exec.go#L283: if runtime.GOOS != "windows" {
exec.go#L291: if runtime.GOOS == "windows" {
exec_posix.go#L65: if runtime.GOOS != "windows" {
exec_posix.go#L134: if runtime.GOOS == "windows" && uint(code) >= 1<<16 { // windows uses large hex numbers
executable_procfs.go#L17: switch runtime.GOOS {
executable_procfs.go#L19: return "", errors.New("Executable not implemented for " + runtime.GOOS)
file.go#L366: if runtime.GOOS == "windows" {
file.go#L507: switch runtime.GOOS {
file.go#L560: switch runtime.GOOS {
file.go#L607: switch runtime.GOOS {
file.go#L617: switch runtime.GOOS {
file_unix.go#L166: switch runtime.GOOS {
file_unix.go#L188: if (runtime.GOOS == "darwin" || runtime.GOOS == "ios") && typ == syscall.S_IFIFO {
file_unix.go#L393: if runtime.GOOS == "android" {
file_unix.go#L435: if (runtime.GOOS == "aix" || runtime.GOOS == "wasip1") && err == syscall.ERANGE {
getwd.go#L27: if runtime.GOOS == "windows" || runtime.GOOS == "plan9" {
pidfd_linux.go#L157: if runtime.GOOS == "android" {
proc.go#L19: if runtime.GOOS == "windows" {
removeall_at.go#L39: if runtime.GOOS == "windows" {
root.go#L309: if runtime.GOOS == "windows" {
root.go#L441: if runtime.GOOS == "windows" {
sys_linux.go#L31: if runtime.GOOS == "android" {
path/filepath
match.go#L103: if runtime.GOOS != "windows" && i+1 < len(pattern) {
match.go#L177: if runtime.GOOS != "windows" {
match.go#L205: if chunk[0] == '\\' && runtime.GOOS != "windows" {
match.go#L255: if runtime.GOOS == "windows" {
match.go#L354: if runtime.GOOS != "windows" {
symlink.go#L38: isWindowsDot := runtime.GOOS == "windows" && path[filepathlite.VolumeNameLen(path):] == "."
reflect
type.go#L1201: if i < 256 && runtime.GOOS != "js" && runtime.GOOS != "wasip1" {
syscall
dirent.go#L77: if ino == 0 && runtime.GOOS != "linux" && runtime.GOOS != "wasip1" { // File absent in directory.
env_unix.go#L99: if runtime.GOOS != "plan9" {
exec_unix.go#L171: if (runtime.GOOS == "freebsd" || runtime.GOOS == "dragonfly") && len(argv) > 0 && len(argv[0]) > len(argv0) {
exec_unix.go#L292: switch runtime.GOOS {
sockcmsg_unix_other.go#L19: switch runtime.GOOS {
sockcmsg_unix_other.go#L36: if runtime.GOOS == "netbsd" && runtime.GOARCH == "arm64" {
syscall_linux.go#L166: if runtime.GOOS != "android" {
syscall_unix.go#L29: darwin64Bit = (runtime.GOOS == "darwin" || runtime.GOOS == "ios") && sizeofPtr == 8
syscall_unix.go#L30: netbsd32Bit = runtime.GOOS == "netbsd" && sizeofPtr == 4
time
sys_unix.go#L22: if runtime.GOOS != "wasip1" {
zoneinfo_read.go#L272: if runtime.GOOS == "aix" && len(name) > 8 && (name[:8] == "Etc/GMT+" || name[:8] == "Etc/GMT-") {
vendor/golang.org/x/sys/cpu
cpu_x86.go#L97: if runtime.GOOS == "darwin" {
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |