Add GOEXPERIMENT=cgobindings for cgo without a C toolchain
Proposal 81450 suggests letting cgo work without a C toolchain. To try out that idea before it is decided, the Go team will add a cgobindings GOEXPERIMENT. Code that implements the proposed functionality goes behind this experiment flag.
The experiment is off by default. Interested developers can turn it on with GOEXPERIMENT=cgobindings to try the feature and give feedback. If #81450 is accepted, the experiment becomes the default and the flag is removed. If it is rejected, the experiment and all code behind it are deleted.
- Proposal
- #81662 by matloob
- Status
- Implemented on Nov 22, 2026
- Impact
- low
- Area
- cmd/cgo