How to Set Up Go on Apple Silicon (M1/M2/M3/M4)

Cli
Install Go on Apple Silicon by downloading the darwin-arm64 binary, extracting it to /usr/local/go, and updating your shell PATH.

Install Go on Apple Silicon by downloading the darwin-arm64 binary, extracting it to /usr/local/go, and adding it to your shell path.

  1. Download the installer by running curl -LO https://go.dev/dl/go1.22.4.darwin-arm64.tar.gz.
  2. Extract the archive to the system directory with sudo tar -C /usr/local -xzf go1.22.4.darwin-arm64.tar.gz.
  3. Add Go to your PATH by appending export PATH=$PATH:/usr/local/go/bin to your ~/.zshrc file.
  4. Apply the changes immediately by running source ~/.zshrc.
  5. Verify the installation by checking the version with go version.