const runtime.GOARCH
85 uses
runtime (current package)
alg.go#L448: if (GOARCH == "386" || GOARCH == "amd64") &&
alg.go#L455: if GOARCH == "arm64" && cpu.ARM64.HasAES {
debug.go#L17: if GOARCH == "wasm" && n > 1 {
extern.go#L377: const GOARCH string = goarch.GOARCH
iface.go#L477: if !abi.UseInterfaceSwitchCache(GOARCH) {
iface.go#L577: if !abi.UseInterfaceSwitchCache(GOARCH) {
malloc.go#L529: case GOARCH == "arm64" && GOOS == "ios":
malloc.go#L531: case GOARCH == "arm64":
mbitmap.go#L1276: if (GOARCH == "amd64" || GOARCH == "arm64") && p == clobberdeadPtr && debug.invalidptr != 0 {
os_linux.go#L489: if GOARCH == "386" || GOARCH == "amd64" {
os_linux.go#L775: if GOARCH == "ppc64" || GOARCH == "ppc64le" {
os_linux.go#L886: if GOARCH == "ppc64" || GOARCH == "ppc64le" {
preempt.go#L389: if (GOARCH == "mips" || GOARCH == "mipsle" || GOARCH == "mips64" || GOARCH == "mips64le") && lr == pc+8 && funcspdelta(f, pc) == 0 {
proc.go#L269: if GOARCH == "wasm" {
proc.go#L742: switch GOARCH {
proc.go#L1762: return GOARCH != "mips64"
proc.go#L1774: return GOARCH != "mips64"
proc.go#L2856: if GOARCH == "wasm" { // no threads on wasm yet
proc.go#L4370: if GOARCH == "wasm" { // no threads yet on wasm
proc.go#L5085: if GOARCH == "arm64" {
proc.go#L5334: if GOARCH == "wasm" {
proc.go#L5386: if GOARCH == "wasm" {
proc.go#L5490: if GOARCH == "mips" || GOARCH == "mipsle" || GOARCH == "arm" {
proc.go#L5497: if GOARCH == "arm" && goarm < 7 && GOOS == "linux" && pc&0xffff0000 == 0xffff0000 {
proc.go#L5995: if (islibrary || isarchive) && GOARCH != "wasm" {
proc.go#L6105: const haveSysmon = GOARCH != "wasm"
runtime2.go#L1296: const framepointer_enabled = GOARCH == "amd64" || GOARCH == "arm64"
signal_unix.go#L399: switch GOARCH {
stack.go#L750: if GOARCH == "arm64" {
stkframe.go#L237: if (GOARCH == "amd64" || GOARCH == "arm64" || GOARCH == "loong64" || GOARCH == "ppc64" || GOARCH == "ppc64le" || GOARCH == "riscv64") &&
symtab.go#L692: if res > md.etext && GOARCH != "wasm" { // on wasm, functions do not live in the same address space as the linear memory
tagptr_64bit.go#L59: if GOARCH != "ppc64" {
tagptr_64bit.go#L64: if GOARCH == "riscv64" {
tagptr_64bit.go#L72: if GOARCH == "amd64" {
tagptr_64bit.go#L80: if GOARCH == "riscv64" {
traceback.go#L190: if GOARCH == "arm" && goarm < 7 && GOOS == "linux" && frame.pc&0xffff0000 == 0xffff0000 {
crypto/internal/fips140
fips140.go#L46: case runtime.GOARCH == "wasm",
fips140.go#L47: runtime.GOOS == "windows" && runtime.GOARCH == "386",
fips140.go#L48: runtime.GOOS == "windows" && runtime.GOARCH == "arm",
fips140.go#L51: return errors.New("FIPS 140-3 mode is not supported on " + runtime.GOOS + "-" + runtime.GOARCH)
crypto/internal/fips140/nistec
p256_asm.go#L333: if runtime.GOARCH == "s390x" {
crypto/tls
cipher_suites.go#L374: hasGCMAsmPPC64 = runtime.GOARCH == "ppc64" || runtime.GOARCH == "ppc64le"
go/build
build.go#L371: 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/sys/cpu
byteorder.go#L45: switch runtime.GOARCH {
cpu_x86.go#L61: {Name: "sse2", Feature: &X86.HasSSE2, Required: runtime.GOARCH == "amd64"},
golang.org/x/sys/unix
sockcmsg_unix_other.go#L32: if runtime.GOARCH == "arm" {
sockcmsg_unix_other.go#L36: if runtime.GOOS == "netbsd" && runtime.GOARCH == "arm64" {
sysvshm_linux.go#L14: if runtime.GOARCH == "arm" ||
sysvshm_linux.go#L15: runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" {
golang.org/x/tools/go/packages
packages.go#L275: ld.sizes = types.SizesFor("gc", runtime.GOARCH)
internal/buildcfg
zbootstrap.go#L20: const defaultGOARCH = runtime.GOARCH
syscall
exec_linux.go#L336: if runtime.GOARCH == "s390x" {
exec_linux.go#L827: if runtime.GOARCH == "s390x" {
exec_unix.go#L303: } else if runtime.GOOS == "openbsd" && runtime.GOARCH != "mips64" {
sockcmsg_unix_other.go#L32: if runtime.GOARCH == "arm" {
sockcmsg_unix_other.go#L36: if runtime.GOOS == "netbsd" && runtime.GOARCH == "arm64" {
testing
benchmark.go#L278: fmt.Fprintf(b.w, "goarch: %s\n", runtime.GOARCH)
benchmark.go#L830: fmt.Printf("goarch: %s\n", runtime.GOARCH)
text/template
exec.go#L25: if runtime.GOARCH == "wasm" {
vendor/golang.org/x/crypto/chacha20
xor.go#L10: const unaligned = runtime.GOARCH == "386" ||
xor.go#L11: runtime.GOARCH == "amd64" ||
xor.go#L12: runtime.GOARCH == "arm64" ||
xor.go#L13: runtime.GOARCH == "ppc64le" ||
xor.go#L14: runtime.GOARCH == "s390x"
vendor/golang.org/x/sys/cpu
byteorder.go#L45: switch runtime.GOARCH {
cpu_x86.go#L58: {Name: "sse2", Feature: &X86.HasSSE2, Required: runtime.GOARCH == "amd64"},