sudo apt-get update
sudo apt-get -y upgrade
sudo tar -xvf go1.13.3.linux-amd64.tar.gz
sudo mv go /usr/local
sudo nano ~/.profileAt the end of the file, add these lines:
export GOROOT=/usr/local/goWith the appropriate line pasted into your bashrc, save and close the file. Next, refresh your bashrc by running:
NOTE: GOPATH must not be the same path as your Go installation.> Create folder at C:\go-work.