go, macos,

Install Go on macOS from the Terminal

Mar 31, 2022 · 1 min read · Post a comment
Install Go on macOS from the Terminal

Go, also known as Golang is a popular open source programming language developed by Google and used for general purpose. Although the official macOS installation supports downloading the .pkg package, and obviously building from source, today we are going to explore an alternative way to install it from the Terminal.


  • Homebrew


Step 1. Open the Terminal and run the following command:

brew install go

Step 2. Verify installation.

go version

Example output:

go version go1.17.8 darwin/amd64


As a next step, you might wanna take a look at Go Version Manager.
On a side note, follow our official channel on Telegram.