Now, before we can set off on our quest to learn Go, we will need to install the Go command-line tool on our local machine so that we can effectively transform the code we are going to be writing into the binary executable files that represent our final application.
These days, the best way to install on your local machine is to navigate to the official Go site https://golang.org/doc/install and you should be able to use the installer for your particular operating system and architecture here.
This will handle everything like setting up the path and environment variables needed in order for you to run go on your command line.
Now, once you have run through the installer, you should then be able to navigate and to the terminal and run
go version and validate that your go installation has been success!
Download the installer - https://golang.org/doc/install
Run the go tool to verify your installation:
$ go version