- Get Go lang from golang.org
- Extract the archive
sudo tar -xvf go1.15.6.linux-amd64.tar.gz - Move the go directory to /usr/local directory
sudo mv go /usr/local - Add global variable to your shell (zsh)
nano ~/.zshrc
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH- Update the shell
source ~/.zshrc
I appreciate this gist π I am also a Pop_OS user and this is very helpful π₯