Standard library / runtime
runtime.GOARCH
Compile-time target architecture. Pointer sizes and supported instructions can depend on this target. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
const GOARCH stringWorking Example
Example Snippetgo
package main
import ( "fmt" "runtime")
func main() { fmt.Println(runtime.GOARCH != "") }