Documentation
¶
Overview ¶
Package goarch parses the Go toolchain's architecture-specific build configuration. It deliberately contains Go semantics only; LLVM mappings belong to the backend.
Index ¶
Constants ¶
const ( Default386 = "sse2" DefaultAMD64 = "v1" DefaultARM = "7" DefaultARM64 = "v8.0" )
Variables ¶
This section is empty.
Functions ¶
func Resolve386 ¶
Resolve386 validates and normalizes GO386. An empty value selects the Go toolchain default. Invalid input returns that default together with an error; callers must check the error unless fallback behavior is intentional.
func ResolveAMD64 ¶
ResolveAMD64 validates and normalizes GOAMD64. An empty value selects the Go toolchain default. Invalid input returns that default together with an error; callers must check the error unless fallback behavior is intentional.
Types ¶
type ARM ¶
ARM describes a normalized GOARM value.
func ParseARM ¶
ParseARM validates and normalizes GOARM. ARMv5 defaults to software floating point; ARMv6 and ARMv7 default to hardware floating point, matching Go. Invalid input returns a default-based value together with an error; callers must check the error unless fallback behavior is intentional.
type ARM64 ¶
ARM64 describes a normalized GOARM64 value.
func ParseARM64 ¶
ParseARM64 validates and normalizes GOARM64. Extension suffixes may occur in either order, matching the Go toolchain. LSE is mandatory from ARMv8.1. Invalid input returns a default-based value together with an error; callers must check the error unless fallback behavior is intentional.