VOOZH about

URL: https://www.geeksforgeeks.org/go-language/how-to-install-golang-on-macos/

⇱ How to Install Golang on MacOS? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to Install Golang on MacOS?

Last Updated : 18 Jun, 2026

Go (also known as Golang) is an open-source programming language developed by Google. It is widely used for building web applications, cloud services, networking tools and system software due to its simplicity, performance and built-in concurrency support.

This guide shows how to install Go on macOS and verify the installation.

Download and Installation

Step 1: Visit the Official Download Page

Download the macOS installer that matches your system, from Go Downloads Page

  • Apple Silicon Macs (M1, M2, M3, M4): darwin-arm64.pkg
  • Intel Macs: darwin-amd64.pkg
👁 go
Official Go Download Page

Step 2: Install Go on macOS

After downloading the .pkg installer, follow these steps:

  1. Open the downloaded .pkg installer from the Downloads folder.
  2. Click Continue through the setup screens.
  3. Click Install and enter your administrator password if prompted.
  4. Wait for the installation to complete.
  5. Click Close to finish the setup.

Note: Go is installed in the system location used by macOS. For most users, no additional setup is required because the installer automatically configures the necessary paths.

Verify the Installation

Step 1: Open Terminal

Once the installation is complete, open Terminal and run:

go version

If Go is installed successfully, you will see output similar to:

go version go1.25.0 darwin/arm64

or

go version go1.25.0 darwin/amd64

The exact version number may vary depending on the latest Go release and your Mac's processor type. This confirms that Go has been installed successfully and is ready to use.

Comment
Article Tags:

Explore