-
-
Save figassis/4e9b694efbf99fd6e9b81d0f38636b63 to your computer and use it in GitHub Desktop.
Install latest version of Go in Linux
This file contains 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
#!/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