交叉編譯

支援的作業系統和體系結構目標組合 (源)

$ GOOS $ GOARCH
android arm
darwin 386
darwin AMD64
darwin arm
darwin arm64
dragonfly AMD64
FreeBSD 386
FreeBSD AMD64
FreeBSD arm
Linux 386
Linux AMD64
Linux arm
Linux arm64
Linux PPC64
Linux ppc64le
Linux MIPS64
Linux mips64le
NetBSD 386
NetBSD AMD64
NetBSD arm
OpenBSD 386
OpenBSD AMD64
OpenBSD arm
Plan9 386
Plan9 AMD64
solaris AMD64
windows 386
windows AMD64