Installing Go on a Mac

Installing Go on Mac.

Installing Go on Mac.

Here, you’ll find the instructions to install Go on a Mac computer.

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

Restart your terminal and verify the settings by entering the following commands.

which go
# returns: /usr/local/go/bin/go
echo $PATH
# Make sure PATH contains '/usr/local/go/bin/go'.
go version
# Prints something similar to the following:
# go version go1.16.4 darwin/amd64

You Are All Set

That’s it. You are now ready to use Go in your system.