Skip to content

Instantly share code, notes, and snippets.

@ijin
Last active June 6, 2016 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ijin/db37b304cc7b1825e800b248419beab7 to your computer and use it in GitHub Desktop.
Save ijin/db37b304cc7b1825e800b248419beab7 to your computer and use it in GitHub Desktop.
install golang
#!/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