package platform
Import Path
internal/platform (on go.dev)
Dependency Relation
imports 0 packages, and imported by 2 packages
Package-Level Type Names (only one)
Package-Level Functions (total 13)
ASanSupported reports whether goos/goarch supports the address
sanitizer option.
Broken reportsr whether goos/goarch is considered a broken port.
(See https://go.dev/wiki/PortingPolicy#broken-ports.)
BuildModeSupported reports whether goos/goarch supports the given build mode
using the given compiler.
There is a copy of this function in cmd/dist/test.go.
CgoSupported reports whether goos/goarch supports cgo.
DefaultPIE reports whether goos/goarch produces a PIE binary when using the
"default" buildmode. On Windows this is affected by -race,
so force the caller to pass that in to centralize that choice.
ExecutableHasDWARF reports whether the linked executable includes DWARF
symbols on goos/goarch.
FirstClass reports whether goos/goarch is considered a “first class” port.
(See https://go.dev/wiki/PortingPolicy#first-class-ports.)
FuzzInstrumented reports whether fuzzing on goos/goarch uses coverage
instrumentation. (FuzzInstrumented implies FuzzSupported.)
FuzzSupported reports whether goos/goarch supports fuzzing
('go test -fuzz=.').
func InternalLinkPIESupported(goos, goarch string) bool
MSanSupported reports whether goos/goarch supports the memory
sanitizer option.
MustLinkExternal reports whether goos/goarch requires external linking
with or without cgo dependencies.
RaceDetectorSupported reports whether goos/goarch supports the race
detector. There is a copy of this function in cmd/dist/test.go.
Race detector only supports 48-bit VMA on arm64. But it will always
return true for arm64, because we don't have VMA size information during
the compile time.
Package-Level Variables (only one)
List is the list of all valid GOOS/GOARCH combinations,
including known-broken ports.
The pages are generated with Golds v0.7.0-preview. (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. |