const runtime.GOOS

163 uses

	runtime (current package)
		cgocall.go#L121: 	if !iscgo && GOOS != "solaris" && GOOS != "illumos" && GOOS != "windows" {
		env_posix.go#L27: 	if GOOS == "windows" { // case insensitive
		extern.go#L253: const GOOS string = sys.GOOS
		lfstack_64bit.go#L42: 	if GOARCH == "ppc64" && GOOS == "aix" {
		lfstack_64bit.go#L54: 	if GOARCH == "ppc64" && GOOS == "aix" {
		lock_sema.go#L133: 	if GOOS == "aix" {
		malloc.go#L532: 			case GOARCH == "arm64" && GOOS == "ios":
		malloc.go#L536: 			case GOOS == "aix":
		malloc.go#L809: 	case GOOS == "windows":
		malloc.go#L1231: 	if GOOS == "plan9" {
		mheap.go#L51: 	physPageAlignedStacks = GOOS == "openbsd"
		netpoll.go#L219: 	if GOOS == "solaris" || GOOS == "illumos" || GOOS == "aix" {
		os_darwin.go#L298: 	if GOOS == "darwin" && GOARCH == "arm64" {
		os_darwin.go#L311: 	if !(GOOS == "ios" && GOARCH == "arm64") {
		os_darwin.go#L323: 	if !(GOOS == "ios" && GOARCH == "arm64") {
		panic.go#L1360: 	if GOOS == "windows" && _m_.libcallsp != 0 {
		proc.go#L191: 		if GOOS != "windows" {
		proc.go#L556: 	switch GOOS {
		proc.go#L759: 	if iscgo || GOOS == "solaris" || GOOS == "illumos" || GOOS == "windows" {
		proc.go#L1212: 	switch GOOS {
		proc.go#L1224: 	switch GOOS {
		proc.go#L1326: 	if (iscgo || GOOS == "windows") && !cgoHasExtraM {
		proc.go#L1433: 	if GOOS == "darwin" || GOOS == "ios" {
		proc.go#L1808: 	if (iscgo || GOOS == "windows") && !cgoHasExtraM {
		proc.go#L2078: 	if gp := getg(); gp != nil && gp.m != nil && (gp.m.lockedExt != 0 || gp.m.incgo) && GOOS != "plan9" {
		proc.go#L2957: 		if GOOS != "plan9" { // Temporary workaround - see issue #42303.
		proc.go#L3426: 		if GOOS != "plan9" { // See golang.org/issue/22227.
		proc.go#L3929: 	if GOOS == "darwin" || GOOS == "ios" {
		proc.go#L4265: 	if atomic.Load(&newmHandoff.haveTemplateThread) == 0 && GOOS != "plan9" {
		proc.go#L5204: 		if GOOS == "netbsd" {
		proc.go#L5901: 						if GOOS != "windows" {
		runtime1.go#L68: 	if GOOS == "windows" {
		runtime1.go#L355: 	if GOOS == "linux" {
		runtime2.go#L1108: const framepointer_enabled = GOARCH == "amd64" || GOARCH == "arm64" && (GOOS == "linux" || GOOS == "darwin" || GOOS == "ios")
		signal_amd64.go#L52: 	if GOOS == "darwin" && sig == _SIGFPE && gp.sigcode0 == 0 {
		signal_unix.go#L339: 	if GOOS == "darwin" || GOOS == "ios" {
		signal_unix.go#L355: 	if GOOS == "darwin" || GOOS == "ios" {
		signal_unix.go#L360: 		if GOOS == "darwin" || GOOS == "ios" {
		signal_unix.go#L372: 	if GOOS == "darwin" || GOOS == "ios" {
		signal_unix.go#L435: 			if GOOS == "darwin" || GOOS == "ios" {
		signal_unix.go#L828: 	if GOOS != "freebsd" && (isarchive || islibrary) && handler == _SIG_DFL && c.sigcode() != _SI_USER {
		signal_unix.go#L856: 	if GOOS == "darwin" && GOARCH == "amd64" {
		signal_unix.go#L993: 	if (GOOS == "darwin" || GOOS == "ios") && sig == _SIGPIPE {
		sigqueue.go#L113: 				if GOOS == "darwin" || GOOS == "ios" {
		sigqueue.go#L164: 					if GOOS == "darwin" || GOOS == "ios" {
		sigqueue.go#L227: 		if GOOS == "darwin" || GOOS == "ios" {
		string.go#L413: 	if GOOS == "plan9" {
		symtab.go#L558: 			if GOOS == "aix" && isarchive {

	runtime/pprof
		pprof_rusage.go#L19: 	switch runtime.GOOS {

	cloud.google.com/go/compute/metadata
		metadata.go#L189: 	if runtime.GOOS != "linux" {

	crypto/rand
		rand_unix.go#L31: 	if runtime.GOOS == "plan9" {
		rand_unix.go#L71: 		if runtime.GOOS == "plan9" {

	crypto/x509
		cert_pool.go#L106: 	if runtime.GOOS == "windows" {
		verify.go#L775: 	if opts.Roots == nil && runtime.GOOS == "windows" {

	github.com/aws/aws-sdk-go/aws/corehandlers
		user_agent.go#L16: 		runtime.Version(), runtime.GOOS, runtime.GOARCH),

	github.com/aws/aws-sdk-go/aws/credentials/processcreds
		provider.go#L301: 	if runtime.GOOS == "windows" {
		provider.go#L390: 	if runtime.GOOS == "windows" {

	github.com/aws/aws-sdk-go/internal/shareddefaults
		shared_config.go#L34: 	if runtime.GOOS == "windows" { // Windows

	github.com/evanw/esbuild/internal/logger
		logger.go#L620: 		if runtime.GOOS == "windows" {

	github.com/go-git/go-git/v5/plumbing/format/index
		match.go#L67: 			if runtime.GOOS != "windows" {
		match.go#L144: 			if runtime.GOOS != "windows" {
		match.go#L170: 	if chunk[0] == '\\' && runtime.GOOS != "windows" {

	github.com/go-git/go-git/v5/storage/filesystem/dotgit
		dotgit_rewrite_packed_refs.go#L36: 	if runtime.GOOS != "windows" {

	github.com/mitchellh/go-homedir
		homedir.go#L41: 	if runtime.GOOS == "windows" {
		homedir.go#L91: 	if runtime.GOOS == "plan9" {
		homedir.go#L104: 	if runtime.GOOS == "darwin" {

	go/build
		build.go#L276: 	if runtime.GOOS == "windows" {
		build.go#L278: 	} else if runtime.GOOS == "plan9" {
		build.go#L299: 	c.GOOS = envOr("GOOS", runtime.GOOS)
		build.go#L328: 		if runtime.GOARCH == c.GOARCH && runtime.GOOS == c.GOOS {
		gc.go#L16: 	return filepath.Join(runtime.GOROOT(), "pkg/tool/"+runtime.GOOS+"_"+runtime.GOARCH)

	golang.org/x/net/http2
		server.go#L682: 	if runtime.GOOS == "windows" {

	golang.org/x/oauth2/google
		default.go#L142: 	if runtime.GOOS == "windows" {
		sdk.go#L181: 	if runtime.GOOS == "windows" {

	golang.org/x/sys/unix
		sockcmsg_unix_other.go#L19: 	switch runtime.GOOS {
		sockcmsg_unix_other.go#L36: 		if runtime.GOOS == "netbsd" && runtime.GOARCH == "arm64" {
		syscall_bsd.go#L290: 	if (runtime.GOOS == "darwin" || runtime.GOOS == "ios") && len == 0 {
		syscall_bsd.go#L314: 	if runtime.GOOS == "dragonfly" && rsa.Addr.Family == AF_UNSPEC && rsa.Addr.Len == 0 {

	google.golang.org/grpc/credentials/alts
		utils.go#L55: 	runningOS          = runtime.GOOS

	net
		conf.go#L37: 	confVal  = &conf{goos: runtime.GOOS}
		conf.go#L72: 	if runtime.GOOS == "darwin" || runtime.GOOS == "ios" {
		conf.go#L91: 	if runtime.GOOS == "openbsd" && os.Getenv("ASR_CONFIG") != "" {
		conf.go#L96: 	if runtime.GOOS != "openbsd" {
		fd_unix.go#L78: 		if runtime.GOOS == "solaris" || runtime.GOOS == "illumos" {
		ipsock_posix.go#L43: 	switch runtime.GOOS {
		ipsock_posix.go#L137: 	if (runtime.GOOS == "aix" || runtime.GOOS == "windows" || runtime.GOOS == "openbsd") && mode == "dial" && raddr.isWildcard() {
		sock_bsd.go#L19: 	switch runtime.GOOS {
		sockopt_bsd.go#L16: 	if runtime.GOOS == "dragonfly" && sotype != syscall.SOCK_RAW {

	net/http
		h2_bundle.go#L4251: 	if runtime.GOOS == "windows" {

	os
		file.go#L256: 	if runtime.GOOS == "windows" && isWindowsNulName(name) {
		file.go#L402: 	switch runtime.GOOS {
		file.go#L453: 	switch runtime.GOOS {
		file.go#L495: 	switch runtime.GOOS {
		file.go#L505: 	switch runtime.GOOS {
		file.go#L637: 	if !fs.ValidPath(name) || runtime.GOOS == "windows" && containsAny(name, `\:`) {
		file_unix.go#L143: 		switch runtime.GOOS {
		file_unix.go#L165: 			if (runtime.GOOS == "darwin" || runtime.GOOS == "ios") && typ == syscall.S_IFIFO {
		file_unix.go#L330: 		if runtime.GOOS == "android" {
		file_unix.go#L379: 		if runtime.GOOS == "aix" && e == syscall.ERANGE {
		getwd.go#L23: 	if runtime.GOOS == "windows" || runtime.GOOS == "plan9" {
		proc.go#L19: 	if runtime.GOOS == "windows" {

	os/exec
		exec.go#L382: 	if runtime.GOOS == "windows" {
		exec.go#L742: 	return dedupEnvCase(runtime.GOOS == "windows", env)
		exec.go#L774: 	if runtime.GOOS != "windows" {

	path/filepath
		match.go#L102: 			if runtime.GOOS != "windows" {
		match.go#L187: 			if runtime.GOOS != "windows" {
		match.go#L217: 	if chunk[0] == '\\' && runtime.GOOS != "windows" {
		match.go#L257: 	if runtime.GOOS == "windows" {
		match.go#L356: 	if runtime.GOOS != "windows" {
		symlink.go#L37: 		isWindowsDot := runtime.GOOS == "windows" && path[volumeNameLen(path):] == "."

	syscall
		env_unix.go#L107: 	if runtime.GOOS != "plan9" {
		exec_unix.go#L172: 	if (runtime.GOOS == "freebsd" || runtime.GOOS == "dragonfly") && len(argv[0]) > len(argv0) {
		exec_unix.go#L294: 	if runtime.GOOS == "solaris" || runtime.GOOS == "illumos" || runtime.GOOS == "aix" {
		exec_unix.go#L300: 	} else if runtime.GOOS == "darwin" || runtime.GOOS == "ios" {
		exec_unix.go#L303: 	} else if runtime.GOOS == "openbsd" && runtime.GOARCH == "amd64" {
		route_bsd.go#L30: 	} else if runtime.GOOS == "freebsd" {
		sockcmsg_unix_other.go#L19: 	switch runtime.GOOS {
		sockcmsg_unix_other.go#L36: 		if runtime.GOOS == "netbsd" && runtime.GOARCH == "arm64" {
		syscall_bsd.go#L295: 	if (runtime.GOOS == "darwin" || runtime.GOOS == "ios") && len == 0 {
		syscall_bsd.go#L319: 	if runtime.GOOS == "dragonfly" && rsa.Addr.Family == AF_UNSPEC && rsa.Addr.Len == 0 {
		syscall_unix.go#L25: 	darwin64Bit = (runtime.GOOS == "darwin" || runtime.GOOS == "ios") && sizeofPtr == 8
		syscall_unix.go#L26: 	netbsd32Bit = runtime.GOOS == "netbsd" && sizeofPtr == 4

	testing
		benchmark.go#L261: 		fmt.Fprintf(b.w, "goos: %s\n", runtime.GOOS)
		benchmark.go#L654: 			fmt.Printf("goos: %s\n", runtime.GOOS)
		testing.go#L1677: 	if runtime.GOOS == "windows" && len(path) >= 2 {

	time
		zoneinfo_read.go#L270: 		if runtime.GOOS == "aix" && len(name) > 8 && (name[:8] == "Etc/GMT+" || name[:8] == "Etc/GMT-") {

	vendor/golang.org/x/net/route
		address.go#L224: 	if runtime.GOOS == "darwin" || runtime.GOOS == "ios" {
		interface_classic.go#L55: 	if runtime.GOOS == "netbsd" {
		route_classic.go#L20: 	if runtime.GOOS == "darwin" || runtime.GOOS == "ios" {