cd /usr/local/
sudo wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz
sudo tar -xzf go1.13.4.linux-amd64.tar.gz
cd /etc/profile.d
sudo nano go.sh
#insert following lines:
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
After that exit the terminal to load the newly applied environment variables.
cd /usr/local
sudo rm -rf go
repeat the process of installing new golang