Skip to content

Instantly share code, notes, and snippets.

@myugan
Last active June 6, 2020 11:47
Show Gist options
  • Save myugan/6b5dd9c19aaf61e8bb8a08e798c339f0 to your computer and use it in GitHub Desktop.
Save myugan/6b5dd9c19aaf61e8bb8a08e798c339f0 to your computer and use it in GitHub Desktop.
#!/bin/bash
wget https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz
tar -xvf go1.14.4.linux-amd64.tar.gz
mv go /usr/local
tee -a ~/.profile << END
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
END
source ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment