Skip to content

Instantly share code, notes, and snippets.

@kentarosasaki
Last active August 12, 2017 00:18
Show Gist options
  • Save kentarosasaki/7d52297d7a483f381c6e3fc701906732 to your computer and use it in GitHub Desktop.
Save kentarosasaki/7d52297d7a483f381c6e3fc701906732 to your computer and use it in GitHub Desktop.
ホームディレクトリにGolangをインストールする ref: http://qiita.com/kentarosasaki/items/90ce0b4f5855d9aad458
cd /tmp
wget https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
tar zxvf go1.8.linux-amd64.tar.gz
mv /tmp/go ~/goroot
cat << 'EOF' >> ~/.bash_profile
export GOROOT=$HOME/goroot
export PATH=$GOROOT/bin:$PATH
EOF
exec -l $SHELL
export GOPATH=$HOME/go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment