Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: list all GOARCH/GOOS #27916

Closed
jimmyfrasche opened this issue Sep 28, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@jimmyfrasche
Copy link
Member

commented Sep 28, 2018

It's sometimes useful for tools to know about GOARCH/GOOS other than the current one. This information has to be collected from various sources, hardcoded, and manually kept up to date. It would be better if the go command could be queried to find out what the current information is.

Ideally, I'd like to see something roughly like the below, with the option to have it be output as json.

struct {
  Supported []struct {
    GOOS string
    GOARCH string
    CgoSupported bool
    WordSize int64
    MaxAlign int64
  }
  ReservedGOARCH []string
  ReservedGOOS []string
}

cc: @bcmills @rsc @ianlancetaylor @alandonovan

@dominikh

This comment has been minimized.

Copy link
Member

commented Sep 28, 2018

@jimmyfrasche Is go tool dist list what you're looking for?

@bontibon

This comment has been minimized.

Copy link
Contributor

commented Sep 28, 2018

Duplicate issue that was already fixed: #12270

@jimmyfrasche

This comment has been minimized.

Copy link
Member Author

commented Sep 28, 2018

Ooh, I did not know about that one. It is indeed. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.