-
Notifications
You must be signed in to change notification settings - Fork 18.5k
runtime/cgo: add support for any param and return type
#76325
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
base: master
Are you sure you want to change the base?
Conversation
|
This PR (HEAD: 73c34cf) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/720960. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/720960. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/720960. |
|
Message from Ian Lance Taylor: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/720960. |
73c34cf to
ba1f629
Compare
|
This PR (HEAD: ba1f629) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/720960. Important tips:
|
|
Message from Alexandre Daubois: Patch Set 1: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/720960. |
|
Message from Alexandre Daubois: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/720960. |
|
Message from Ian Lance Taylor: Patch Set 2: Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/720960. |
|
Message from Go LUCI: Patch Set 2: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-11-18T23:06:17Z","revision":"2e5361563fba38904fc599d16d712cb3583fa085"} Please don’t reply on this GitHub thread. Visit golang.org/cl/720960. |
|
Message from Ian Lance Taylor: Patch Set 2: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/720960. |
|
Message from Go LUCI: Patch Set 2: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/720960. |
|
Message from Go LUCI: Patch Set 2: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/720960. |
|
Message from Sean Liao: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/720960. |
ba1f629 to
5c90847
Compare
|
This PR (HEAD: 5c90847) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/720960. Important tips:
|
When using `any` as param or return type of an exported
function, we currently have the error `unrecognized Go
type any`. `any` is an alias of `interface{}` which is
already supported.
This would avoid such change: php/frankenphp#1976
Fixes golang#76340
5c90847 to
8e4e149
Compare
|
This PR (HEAD: 8e4e149) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/720960. Important tips:
|
|
Message from Alexandre Daubois: Patch Set 4: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/720960. |
|
Message from Keith Randall: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/720960. |
When using
anyas param or return type of an exported function, we currently have the errorunrecognized Go type any.anyis an alias ofinterface{}which is already supported.This would avoid such change: php/frankenphp#1976