This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

Radar · Go · Archive · Week 19 · May 4 – 10, 2026

go/importer: clarification of ForCompiler lookup parameter

Nice to knowecosystem

What changed
Documentation of the lookup parameter of ForCompiler can be clarified to correct a parsing bug that caused unintended deprecation.
Production impact
The source does not say.
Try it
Run go doc go/importer.ForCompiler and verify that the documentation now reflects the intended behavior.
Source
github.com/golang/go/issues/79139

Understand it, then run it

The ForCompiler function in the go/importer package lets you load Go packages by name, using the compiler’s view of the source tree. A recent change clarified the documentation for its lookup argument. Previously the docs were ambiguous and a parsing bug caused the function to be marked as deprecated in Go 1.16, even though it was still fully usable. The clarification removes that confusion and restores the function’s normal status.

Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed