Skip to main content

Download and Install Go

Download

Download the latest version of Go from the official Go website.

Kindly choose the correct version for your operating system.(Windows, Linux, Mac)

Install

  1. Open the package file you downloaded and follow the prompts to install Go.

  2. The package installs the Go distribution to /usr/local/go. The package should put the /usr/local/go/bin directory in your PATH environment variable. You may need to restart any open Terminal sessions for the change to take effect.

  3. Verify that you've installed Go by opening a command prompt and typing the following command:

    Terminal
    $ go version
  4. Confirm that the command prints the installed version of Go.

tip

Can use brew to install Golang for macOS:

Terminal
brew install go