Install Go on Apple Silicon by downloading the darwin-arm64 binary, extracting it to /usr/local/go, and adding it to your shell path.
- Download the installer by running
curl -LO https://go.dev/dl/go1.22.4.darwin-arm64.tar.gz. - Extract the archive to the system directory with
sudo tar -C /usr/local -xzf go1.22.4.darwin-arm64.tar.gz. - Add Go to your PATH by appending
export PATH=$PATH:/usr/local/go/binto your~/.zshrcfile. - Apply the changes immediately by running
source ~/.zshrc. - Verify the installation by checking the version with
go version.