Automate Go Setup
Note: go-dl
IS NOT A VERSION MANAGER. go-dl
simply eliminates the tedious process of manually downloading Go from Go's website, extracting the tar file, setting up permissions, and moving to /usr/local.
Make sure the following tools are installed on your system:
go
wget
- for downloading Go releasestar
- for extracting archives
go install github.com/joybiswas007/go-dl@latest
git clone https://github.com/joybiswas007/go-dl
cd go-dl
go mod tidy
go build -o go-dl main.go
sudo mv go-dl /usr/local/bin/
go-dl
# Show help
go-dl --help