Re: [go-nuts] Determining latest released Go version

2018-11-21 Thread Janne Snabb
Thanks! I think programmers are more likely to stay consistent than web designers — thus this feels a bit better than scraping a web page. Janne Snabb sn...@epipe.com On 20/11/2018 22.06, Caleb Mingle wrote: Perhaps something built using these may work (sorting the go1* tags descending?): htt

Re: [go-nuts] Determining latest released Go version

2018-11-20 Thread Caleb Mingle
Perhaps something built using these may work (sorting the go1* tags descending?): https://go.googlesource.com/go/+refs https://go.googlesource.com/go/+refs?format=JSON https://go.googlesource.com/go/+refs?format=TEXT Kinda brittle to tie this to tag names, but it may be less brittle than parsing H

Re: [go-nuts] Determining latest released Go version

2018-11-20 Thread Janne Snabb
Parsing HTML is exactly what I wanted to avoid doing :) but I haven't found any alternatives so far. For some reason https://api.github.com/repos/golang/go/releases does not return anything. It does work for other projects on Github. Janne Snabb sn...@epipe.com On 20/11/2018 03.51, Tamás Gul

[go-nuts] Determining latest released Go version

2018-11-19 Thread Tamás Gulácsi
See what github.com/niemeyer/godeb does. -- 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. For more options, visit https:/

[go-nuts] Determining latest released Go version

2018-11-19 Thread Janne Snabb
Dear Gophers, How to determine the latest released Go version programmatically? I am working on a system which needs to use the latest published Go version (whatever it is at the time it is run). I would rather not update it manually every time a new version comes out as this is error prone a