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

proposal: cmd/compile, runtime: provide ways to know supported platforms #13888

Closed
hirochachacha opened this issue Jan 9, 2016 · 2 comments
Closed

Comments

@hirochachacha
Copy link
Contributor

Sorry, it's just an idea.

Like this:

$ go tool compile -showcontexts

linux-386-cgo
linux-386
linux-amd64-cgo
linux-amd64
....

In package:

package runtime

var Contexts = []string{
  "linux-386-cgo",
  "linux-386",
  ...
}

It's not only useful for "users" but "tools" like "go tool api" as well.

https://github.com/golang/go/blob/master/src/cmd/api/goapi.go#L40-L71

@minux
Copy link
Member

minux commented Jan 10, 2016 via email

@bradfitz
Copy link
Contributor

Yeah, dup of #12270

@golang golang locked and limited conversation to collaborators Jan 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants