You only need to copy and run this command in the terminal.
curl -sL https://raw.githubusercontent.com/DieTime/go-up/master/go-up.sh | bash
You can also use wget instead of curl.
wget -qO- https://raw.githubusercontent.com/DieTime/go-up/master/go-up.sh | bash
- Supports Linux and MacOS
- Single line script usage
- Works with either curl or wget on the system
- Automatically determines the path to install a new version
- Restores the GOPATH folder if it is inside GOROOT
- Does not use temporary files