RepoJournal
Go

@golang

Go and the standard library - backend infrastructure at scale

Keep up with Go in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Go Infrastructure Full archive →

The Wire · Showcase

GOIMPORTS JUST GOT 3X FASTER

By RepoJournal · Filed · About Go

golang/tools cut goimports execution time from seconds to subseconds by leveraging the module cache index that gopls already builds.

The golang/tools team shipped an optimization that fundamentally changes how goimports scans dependencies [1]. Instead of brute-forcing the entire module cache on every invocation, the new code checks for an index first, the same one gopls creates during normal editing sessions. If that index exists, goimports uses it. If not, it falls back to the original behavior. The impact is measurable: on a standard laptop, execution drops to 0.66 seconds [1]. This is the kind of invisible performance win that compounds across a thousand editor saves in a workday. The implementation is clean - no test refactoring required because the existing test suite doesn't generate indexes, so nothing breaks.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] internal/imports: use module cache index if it exists golang/tools

Quick answers

What shipped in Go on June 28, 2026?
golang/tools cut goimports execution time from seconds to subseconds by leveraging the module cache index that gopls already builds. In total, 1 commits landed.
What were the notable Go updates?
internal/imports: use module cache index if it exists.

More from @golang

Daily updates, in your inbox

Follow Go

Keep up with Go in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.