Skip to content

Instantly share code, notes, and snippets.

@mattiasghodsian
Last active May 31, 2025 14:42
Show Gist options
  • Select an option

  • Save mattiasghodsian/7a19854f2882e216a6ec0d74bc4ff438 to your computer and use it in GitHub Desktop.

Select an option

Save mattiasghodsian/7a19854f2882e216a6ec0d74bc4ff438 to your computer and use it in GitHub Desktop.
Install Go Lang on Ubuntu/Pop!_OS 20.04 LTS (zsh)

Install Go Lang on Ubuntu/Pop!_OS 20.04 LTS (zsh)

  • 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
@longdnh

longdnh commented May 3, 2025

Copy link
Copy Markdown

Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment