Skip to content

Instantly share code, notes, and snippets.

@zhaopengme
Forked from witooh/go.sh
Created August 4, 2017 02:30
Show Gist options
  • Save zhaopengme/f59560afa529cf12b18f35882005355b to your computer and use it in GitHub Desktop.
Save zhaopengme/f59560afa529cf12b18f35882005355b to your computer and use it in GitHub Desktop.
[Go] Ubuntu install
wget http://golang.org/dl/go1.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.3.linux-amd64.tar.gz
sudo echo "PATH=$PATH:/vagrant/go/bin:/usr/local/go/bin" >> ~/.profile
sudo echo "export GOPATH=/vagrant/go" >> ~/.profile
sudo echo "export GOROOT=/usr/local/go" >> ~/.profile
source ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment