Skip to content

Instantly share code, notes, and snippets.

@JohnAllen
Last active February 12, 2023 10:28
Show Gist options
  • Save JohnAllen/7cc10934931efff1e88d919084f1f29b to your computer and use it in GitHub Desktop.
Save JohnAllen/7cc10934931efff1e88d919084f1f29b to your computer and use it in GitHub Desktop.
install Go for Linux
wget https://go.dev/dl/go1.19.linux-amd64.tar.gz
sudo tar -xvf go1.19.linux-amd64.tar.gz
sudo mv go /usr/local/go
export GOROOT=/usr/local/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
echo "GOROOT=/usr/local/go " >> ~/.bashrc
echo "PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment