Last active
April 26, 2018 10:34
-
-
Save chevdor/236545f0c80bd4eb622c2604b8917770 to your computer and use it in GitHub Desktop.
Go install
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
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