Skip to content

Instantly share code, notes, and snippets.

@random-robbie random-robbie/
Last active Apr 24, 2019

What would you like to do?
install golang
echo 'Installing go...'
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

This comment has been minimized.

Copy link
Owner Author

commented Feb 14, 2019

curl -l | 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.