From 362625209b6cd2bc059b6b0a67712ddebab312d9 Mon Sep 17 00:00:00 2001
From: Agniva De Sarker
-The Go compilers support eight instruction sets. +The Go compilers support nine instruction sets. There are important differences in the quality of the compilers for the different architectures.
@@ -87,6 +87,12 @@ architectures.wasm (WebAssembly)
+
@@ -493,25 +499,45 @@ These default to the values of $GOHOSTOS and
Choices for $GOOS are
-darwin (macOS 10.10 and above and iOS), dragonfly, freebsd,
+android, darwin (macOS 10.11 and above and iOS),
+dragonfly, freebsd, illumos, js,
linux, netbsd, openbsd,
plan9, solaris and windows.
+
Choices for $GOARCH are
amd64 (64-bit x86, the most mature port),
386 (32-bit x86), arm (32-bit ARM), arm64 (64-bit ARM),
ppc64le (PowerPC 64-bit, little-endian), ppc64 (PowerPC 64-bit, big-endian),
mips64le (MIPS 64-bit, little-endian), mips64 (MIPS 64-bit, big-endian),
-mipsle (MIPS 32-bit, little-endian), mips (MIPS 32-bit, big-endian), and
-s390x (IBM System z 64-bit, big-endian).
+mipsle (MIPS 32-bit, little-endian), mips (MIPS 32-bit, big-endian),
+s390x (IBM System z 64-bit, big-endian), and
+wasm (WebAssembly 32-bit).
+
The valid combinations of $GOOS and $GOARCH are:
$GOOS | $GOARCH |
|
|---|---|---|
aix | ppc64 |
+|
android | 386 |
+|
android | amd64 |
+|
android | arm |
|
android | arm64 |
+|
darwin | 386 |
|
freebsd | arm |
|
illumos | amd64 |
+|
js | wasm |
+|
linux | 386 |
|
openbsd | arm |
|
openbsd | arm64 |
+|
plan9 | 386 |
|
plan9 | amd64 |
|
plan9 | arm |
+|
solaris | amd64 |
|