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

18 lines
700 B
Markdown

---
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](https://golang.org/dl/), get the Mac package installer (ending in .pkg) and run it.
![screenshot of golang's download page as of this writting, highliting link](https://raw.githubusercontent.com/AlexandroPerez/resources/master/img/mac_package_installer.jpg "Mac package installer link")
#### Check installation and version of go
To check if go was successfully installed, open your terminal and use:
```sh
$ go version
```
This should print to the console the version of go, while at the same time making sure the installation went smoothly.