Skip to content

Instantly share code, notes, and snippets.

@figassis
Forked from jpillora/install-go.sh
Last active May 13, 2020 17:40
Show Gist options
  • Save figassis/4e9b694efbf99fd6e9b81d0f38636b63 to your computer and use it in GitHub Desktop.
Save figassis/4e9b694efbf99fd6e9b81d0f38636b63 to your computer and use it in GitHub Desktop.
Install latest version of Go in Linux
#!/bin/bash
mkdir -p $HOME/go
curl -LO https://get.golang.org/$(uname)/go_installer && chmod +x go_installer && ./go_installer && rm go_installer
. ~/.bash_profile
echo "Go is installed and your GOPATH is '$HOME/go'"
echo "Please reload this shell or enter the command '. ~/.bash_profile'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment