Skip to content

Instantly share code, notes, and snippets.

@cmdallas
Last active December 15, 2017 05:26
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 cmdallas/b3d7e3d3374a115fed95ae7173bdf0e8 to your computer and use it in GitHub Desktop.
Save cmdallas/b3d7e3d3374a115fed95ae7173bdf0e8 to your computer and use it in GitHub Desktop.
Golang installation
yum update
yum upgrade
wget https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz
tar -xvf go1.9.2.linux-amd64.tar.gz
sudo mv go /usr/local
rm go1.9.2.linux-amd64.tar.gz
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
go version
go env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment