freeCodeCamp/guide/english/go/installing-go/mac-package-installer/index.md

700 B

title
Installing Go in Mac OS X using Package Installer

Installing Go in Mac OS X using Package Installer

From the golang's download page, get the Mac package installer (ending in .pkg) and run it.

screenshot of golang's download page as of this writting, highliting link

Check installation and version of go

To check if go was successfully installed, open your terminal and use:

$ go version

This should print to the console the version of go, while at the same time making sure the installation went smoothly.