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 34 · Aug 18 – 24, 2025

x/tools/go/packages: add Postorder iterator

Worth knowingtooling

What changed
The proposal adds a Postorder function that returns an iter.Seq[*Package] over packages in dependencies‑first order.
Production impact
The source does not say.
Try it
In a Go program that imports golang.org/x/tools/go/packages, call packages.Postorder(pkgs) to iterate over loaded packages instead of using packages.Visit.
Source
github.com/golang/go/issues/74875

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