- Download the binaries
- Extract them
tar -C /usr/local -xzf go1.8.3.linux-amd64.tar.gz
- Set Go variables to
~/.profile
:
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
- Create the directory for Go path
mkdir ~/go
- For a new project
mkdir ~/go/src/hello-world