Skip to content

Instantly share code, notes, and snippets.

@refactormyself
Created August 27, 2019 17:33
Show Gist options
  • Save refactormyself/2c5beb9181195f796b361a9eb06f9ed5 to your computer and use it in GitHub Desktop.
Save refactormyself/2c5beb9181195f796b361a9eb06f9ed5 to your computer and use it in GitHub Desktop.
Download and Install Go
#!/usr/bin/env bash
wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.6.2.linux-amd64.tar.gz
echo "export GOPATH=~/go" >> ~/.bashrc
source ~/.bashrc
# mkdir -p $GOPATH/src/myapp
# cd $GOPATH/src/myapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment