Skip to content

Instantly share code, notes, and snippets.

@chevdor
Last active April 26, 2018 10:34
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 chevdor/236545f0c80bd4eb622c2604b8917770 to your computer and use it in GitHub Desktop.
Save chevdor/236545f0c80bd4eb622c2604b8917770 to your computer and use it in GitHub Desktop.
Go install
wget https://dl.google.com/go/go1.10.linux-amd64.tar.gz
sudo tar -xvf go1.10.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo mv go /usr/local
echo "export GOROOT=/usr/local/go" >> $HOME/.bashrc
echo "export GOPATH=$HOME/GO" >> $HOME/.bashrc
echo "export PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> $HOME/.bashrc
source $HOME/.bashrc
# CHECK
go version
go env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment