I think you're after something like (for your OS/arch): wget https://dl.google.com/go/$(curl -s https://golang.org/dl/?mode=json | jq -r .[0].version).linux-amd64.tar.gz
The JSON mode of the download page being the key here. On Tue, 14 Jan 2020 at 09:22, Steve Mynott <steve.myn...@gmail.com> wrote: > > Does anyone have a simple shell alias, function or similar to get the > latest released versions of go? > > Is there a cleaner way of going this than screen scraping the website > or looking at tags in git? > > -- > Steve Mynott <steve.myn...@gmail.com> > cv25519/ECF8B611205B447E091246AF959E3D6197190DD5 > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/CANuZA8R2j8_0pgbNw13qAq82dTJonCsXgnNS0vhKD_dxzwhwfw%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CACoUkn5080_QzQiP%3D-gn8E1h7k837FCRr7WQ_D0bBxiyw01QmQ%40mail.gmail.com.