Skip to content

cmd/dist: list all valid combinations of GOOS and GOARCH #12270

Closed
@otm

Description

@otm

To easier write tooling for cross compiling it would be good to programmatically get the possible combinations of GOOS and GOARCH.

The only reference I can find is at http://golang.org/doc/install/source#environment

In addition, go help environmentonly gives examples; andgo help build and go help installdoes not mention GOOS and GOARCH.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions