golling - update golang to the latest version
For those of you who want to stay up to date, golling will install or update the latest version of golang on your system. So, let's begin with 'golling update'.
🎉 Go 1.20.3 and 1.19.8 are released!
🔐 Security: Includes security fixes in go/parser, html/template, mime/multipart, net/http, net/textproto.
🗣 Announcement: https://t.co/ArWitPhdK5
⬇️ Download: https://t.co/NWgsxwoPCg#golang pic.twitter.com/wagVWAK68t
— Go (@golang) April 4, 2023
How to install
Use "go install"
If you does not have the golang development environment installed on your system, please install golang from the golang official website.
go install github.com/nao1215/golling@latest
Use homebrew (aarch64)
$ brew tap nao1215/tap
$ brew install nao1215/tap/golling
How to use
golling start update if golang is not up to date. By default, golling checks /usr/local/go. If golang is not on the system, golling install the latest golang in /usr/local/go.
$ sudo golling update
download go1.20.1.linux-amd64.tar.gz at current directory
Downloading...99886/99886 kB (100%)
[compare sha256 checksum]
expect: 000a5b1fca4f75895f78befeb2eecf10bfff3c428597f3f1e69133b63b911b02
got : 000a5b1fca4f75895f78befeb2eecf10bfff3c428597f3f1e69133b63b911b02
backup original /usr/local/go as /usr/local/go.backup
start extract go1.20.1.linux-amd64.tar.gz at /usr/local/go
delete backup (/usr/local/go.backup)
delete go1.20.1.linux-amd64.tar.gz
success to update golang (version 1.20.1)
Support OS
First off, thanks for taking the time to contribute! heart Contributions are not only related to development. For example, GitHub Star motivates me to develop!
If you would like to send comments such as "find a bug" or "request for additional features" to the developer, please use one of the following contacts.
LICENSE
The golling project is licensed under the terms of MIT LICENSE.
Another project: gup update binaries installed by "go install".
gup command update binaries installed by "go install" to the latest version. gup updates all binaries in parallel, so very fast. It also provides subcommands for manipulating binaries under $GOPATH/bin ($GOBIN). It is a cross-platform software that runs on Windows, Mac and Linux.