Godl is a CLI tool used to download and install go binary releases on mac. It supports both Intel and M1 macs.
To download and install a specific version of godl, copy and paste the installation command:
curl -s https://raw.githubusercontent.com/dikaeinstein/godl/master/get.sh | sh -s -- v0.18.0
go install github.com/dikaeinstein/godl
Prerequisites for building from source are:
- make
- Go 1.18+
git clone https://github.com/dikaeinstein/godl
cd godl
make build
If you've have setup your $GOPATH or $GOBIN correctly, you should have godl
command in your $PATH.
To check the $GOPATH and $GOBIN; run go env
Run godl version
to verify.
Run godl help
to get help and see available options
godl supports autocomplete for all subcommands
completion
— Generates completion scripts for bash or zshdownload
— Download go binary archivehelp
— Help about any commandinstall
— Installs the specified go binary release versionlist|ls
— List the downloaded versionslist-remote|ls-remote
— List available remote versionsupdate
- Checks for updates.version
— Show the godl version information
To download and install go1.20:
# To download only
godl download 1.20
# To download and install if the given version is already downloaded.
sudo godl install 1.20
Then run
go version
output: go version go1.20 darwin/amd64 // or something similar
- update sub command to install latest version or specific version (tip: exec get.sh)
- support M1 Macs
You can take a shot at the suggested improvements from the README. Also follow the convention from the contribution.md