GoでApple Silicon向けのバイナリ生成は GOOS=darwin GOARCH=arm64
#Go #Apple_silicon #macOS
Go 1.16からApple silicon向けに実行ファイルをビルドできる。情報源は以下から。
Go 1.16 adds support of 64-bit ARM architecture on macOS (also known as Apple Silicon) with GOOS=darwin, GOARCH=arm64
元: Go 1.16 Release Notes - The Go Programming Language
また、もともとi上記のGOOSとGOARCHの組みはiOSのビルドとして使われていたようで、iOSの方はGOOS=iosになった様子。
The iOS port, which was previously darwin/arm64, has been renamed to ios/arm64. GOOS=ios implies the darwin build tag