/ go

Installing go on Ubuntu 16.04

Install go

curl -O https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz
tar -xvf go1.12.6.linux-amd64.tar.gz


sudo chown -R root:root ./go
sudo mv go /usr/local

Add to ~/.profile

export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin

Load the profile

source ~/.profile