Skip to content

Instantly share code, notes, and snippets.

@random-robbie random-robbie/go.sh
Last active Apr 24, 2019

Embed
What would you like to do?
install golang
echo 'Installing go...'
wget https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.12.4.linux-amd64.tar.gz
rm go1.12.4.linux-amd64.tar.gz
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
echo 'export GOROOT=/usr/local/go' >> ~/.bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:$GOROOT/bin:$GOPATH/bin' >> ~/.bashrc
@random-robbie

This comment has been minimized.

Copy link
Owner Author

commented Feb 14, 2019

curl -l https://gist.githubusercontent.com/random-robbie/06593ef486a7cd0d214205d2d74433dd/raw/go.sh | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.