const runtime.GOARCH
91 uses
runtime (current package)
alg.go#L394: if (GOARCH == "386" || GOARCH == "amd64") &&
alg.go#L401: if GOARCH == "arm64" && cpu.ARM64.HasAES {
debug.go#L71: if GOARCH == "wasm" && n > 1 {
extern.go#L384: const GOARCH string = goarch.GOARCH
lfstack.go#L39: if GOARCH == "arm64" {
malloc.go#L587: if GOARCH == "riscv64" {
malloc.go#L603: case raceenabled && GOARCH == "riscv64" && vmaSize == 39:
malloc.go#L619: case GOARCH == "arm64" && GOOS == "ios":
malloc.go#L621: case GOARCH == "arm64":
malloc.go#L623: case GOARCH == "riscv64" && vmaSize == 39:
mbitmap.go#L224: if GOARCH == "amd64" {
mbitmap.go#L1366: if (GOARCH == "amd64" || GOARCH == "arm64") && p == clobberdeadPtr && debug.invalidptr != 0 {
mspanset.go#L154: if GOARCH == "arm64" {
os_linux.go#L486: if GOARCH == "386" || GOARCH == "amd64" {
os_linux.go#L570: if GOARCH == "386" && new != nil {
os_linux.go#L787: if GOARCH == "ppc64" || GOARCH == "ppc64le" {
os_linux.go#L898: if GOARCH == "ppc64" || GOARCH == "ppc64le" {
preempt.go#L432: if (GOARCH == "mips" || GOARCH == "mipsle" || GOARCH == "mips64" || GOARCH == "mips64le") && lr == pc+8 && funcspdelta(f, pc) == 0 {
proc.go#L276: if GOARCH == "wasm" {
proc.go#L765: switch GOARCH {
proc.go#L2936: if GOARCH == "wasm" { // no threads on wasm yet
proc.go#L4541: if GOARCH == "wasm" { // no threads yet on wasm
proc.go#L5342: if GOARCH == "arm64" {
proc.go#L5599: if GOARCH == "wasm" {
proc.go#L5651: if GOARCH == "wasm" {
proc.go#L5766: if GOARCH == "mips" || GOARCH == "mipsle" || GOARCH == "arm" {
proc.go#L5773: if GOARCH == "arm" && goarm < 7 && GOOS == "linux" && pc&0xffff0000 == 0xffff0000 {
proc.go#L6375: if (islibrary || isarchive) && GOARCH != "wasm" {
proc.go#L6481: const haveSysmon = GOARCH != "wasm"
runtime2.go#L1505: const framepointer_enabled = GOARCH == "amd64" || GOARCH == "arm64"
signal_unix.go#L400: switch GOARCH {
stack.go#L791: if GOARCH == "arm64" {
stkframe.go#L237: if (GOARCH == "amd64" || GOARCH == "arm64" || GOARCH == "loong64" || GOARCH == "ppc64" || GOARCH == "ppc64le" || GOARCH == "riscv64" || GOARCH == "s390x") &&
symtab.go#L660: if GOARCH == "wasm" {
symtab.go#L707: if res > md.etext && GOARCH != "wasm" { // on wasm, functions do not live in the same address space as the linear memory
symtab.go#L712: if GOARCH == "wasm" {
symtab.go#L728: if GOARCH == "wasm" {
symtab.go#L735: if GOARCH == "wasm" {
symtab.go#L936: if GOARCH == "wasm" {
tagptr_64bit.go#L74: if GOARCH == "amd64" {
traceback.go#L191: if GOARCH == "arm" && goarm < 7 && GOOS == "linux" && frame.pc&0xffff0000 == 0xffff0000 {
crypto/internal/fips140
fips140.go#L54: case runtime.GOARCH == "wasm",
fips140.go#L55: runtime.GOOS == "windows" && runtime.GOARCH == "386",
fips140.go#L58: 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"
encoding/xml
read.go#L325: if depth >= maxUnmarshalDepth || runtime.GOARCH == "wasm" && depth >= maxUnmarshalDepthWasm {
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#L338: if runtime.GOARCH == "s390x" {
exec_linux.go#L854: if runtime.GOARCH == "s390x" {
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#L850: fmt.Printf("goarch: %s\n", runtime.GOARCH)
text/template
exec.go#L25: if runtime.GOARCH == "wasm" {
text/template/parse
parse.go#L52: 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#L61: {Name: "sse2", Feature: &X86.HasSSE2, Required: runtime.GOARCH == "amd64"},