Skip to content

x/website/internal/dl: expand JSON download mode to optionally return archive and unstable releases also #29380

Closed
@johnweldon

Description

@johnweldon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions