Skip to content

Instantly share code, notes, and snippets.

@mattiasghodsian
Last active May 3, 2024 20:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mattiasghodsian/7a19854f2882e216a6ec0d74bc4ff438 to your computer and use it in GitHub Desktop.
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
@papadavis47
Copy link

I appreciate this gist 👍 I am also a Pop_OS user and this is very helpful 🥇

@mattiasghodsian
Copy link
Author

I appreciate this gist 👍 I am also a Pop_OS user and this is very helpful 🥇

You're Welcome

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