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.
Prerequisites
- Homebrew
Solution
Step 1. Open the Terminal and run the following command:
brew install go
Step 2. Verify installation.
go version
Output:
go version go1.17.8 darwin/amd64
Conclusion
As a next step, you might want to take a look at Go Version Manager. On a side note, follow our official channel on Telegram.