Step 1 :
sudo add-apt-repository ppa:gophers/archive
sudo apt-get update
sudo apt-get install golang-1.8
Step 2 :
The workspace is "go" at your working directory by default (such as /home/samiux/go).
Append the following lines at the end of the file :
Step 3 :
Log out and re-login.
Step 4 :
To test if it is working properly :
Step 5 :
Make sure you create the following directories at the "go" workspace :
mkdir -p ~/go/bin
mkdir -p ~/go/src
You build your project, for example "erp", at "~/go/src/erp".
That's all! See you.