Closed
Description
Issue
The PR that resolved #23746 provided a nice JSON response on the download page https://golang.org/dl/?mode=json
However, this only provides for stable releases.
I would like to consume unstable and archive release metadata as JSON also.
Proposal
I'd like to modify https://github.com/golang/tools/blob/4d6773f/godoc/dl/server.go#L80-L88 to add a query param to include archive or unstable releases optionally.
I'm thinking https://golang.org/dl/?mode=json[&include=(all|stable|unstable|archive)]
When the include
param is absent, it would default to stable
which is the current behaviour already.