Basics - Install Go on Mac OS X
The Go programming language has been popular for a few years now. Developers like Go because it’s modern and fits well with the types of architectures in use today. Some of the cool guy features developers gain when they use Go are around improved garbage collection and networking.
Like many other apps on Mac OS X, Go is easy to install via a package.
Download Go for Mac OS X via the website https://golang.org/dl/
Open the downloaded file
Follow the prompts through to completion
I recorded a short video of the install process.
Pay particular attention to the path used by Go. This will be the path used when attempting to execute code. It’s OK to store your code elsewhere as long as you update the $GOPATH Attempting to run a file outside the path will produce an error like the one below.
If everything works, you can copy any number of sample files, save them to a folder in the $GOPATH, then execute them. Below is output from a “Hello World” sample I downloaded.
Resources
Rouse Feed J. Why Go is skyrocketing in popularity. Opensource.com. https://opensource.com/article/17/11/why-go-grows. Accessed September 15, 2019.
Getting Started. Go. https://golang.org/doc/install. Accessed September 15, 2019.
Hamilton, R., Hamilton, V. and Hamilton, R. (2019). Creating My First Web Application with Go. [online] Scott Logic. Available at: https://blog.scottlogic.com/2017/02/28/building-a-web-app-with-go.html [Accessed 17 Sep. 2019].