Last active
June 6, 2016 08:19
-
-
Save ijin/db37b304cc7b1825e800b248419beab7 to your computer and use it in GitHub Desktop.
install golang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export VER=1.6.2 | |
export GO=go$VER.linux-amd64.tar.gz | |
wget https://storage.googleapis.com/golang/$GO | |
tar xvfz $GO | |
cat >>~/.bash_profile <<EOF | |
export GOROOT=\$HOME/go | |
export GOPATH=\$HOME/golang | |
export PATH=\$GOROOT/bin:\$GOPATH/bin:\$PATH | |
EOF | |
source ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment