gover: handle release structural name change
feat: more friendly and descriptive output
feat: support arm64 machines
A simple shell script for installing and switching between go versions on Linux, FreeBSD, and macOS.
Currently only supports x86_64, but contributions to improve this are welcome.
gover
assumes a POSIX environment with grep
, sed
, curl
, and coreutils
.
Ensure $HOME/.local/bin
is towards the beginning of your $PATH
.
curl --tlsv1.2 -o ~/.local/bin/gover https://git.sr.ht/~whereswaldon/gover/blob/main/gover && \
chmod +x ~/.local/bin/gover
sudo curl --tlsv1.2 -o /usr/local/bin/gover https://git.sr.ht/~whereswaldon/gover/blob/main/gover && \
sudo chmod +x /usr/local/bin/gover
You will need to invoke gover
as sudo gover
each time you use it.
gover <version>
This will activate the specified version of go
(installing it if needed).
You can specify latest
as a version to get the latest available version.
If no version is specified, latest
is assumed.
gover # assume latest and install
gover latest # explicitly request latest
gover 1.14.6 # install and activate go 1.14.6
gover 1.13.14 # install and activate go 1.13.14
gover 1.14.6 # activate go 1.14.6 (already installed)
Dual MIT/Unlicense