The Wire · Showcase
REGEXP CANONICALIZATION FIX LANDS IN CORE
By RepoJournal · Filed · About Go
Go's regexp package just got a critical fix for script lookups that was causing collisions in Unicode handling.
The stdlib regexp implementation now applies proper canonicalization to scripts lookup [1], closing a bug that could cause incorrect matching behavior across Unicode character sets. This fix lands in the core Go repository and will ship in the next release. Meanwhile, gopls is getting smarter about embedded field inference [2]. Starting with Go 1.27, you can reference promoted fields directly in struct literals like T{F: 0}, and the IDE now surfaces these implicitly selected field names via InlayHints, making your code's intent crystal clear without diving into type definitions. Both changes target developer experience: one fixes a correctness issue, the other reduces cognitive load in the editor. The regexp fix is more critical if you're working with Unicode-heavy patterns. The gopls enhancement is pure quality of life for anyone using inlay hints.
One email a day. Unsubscribe in one click.
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. Read a past issue →
Action items
References
- [1] regexp: apply canonicalization to scripts lookup golang/go
- [2] gopls/internal/golang: InlayHint: show embedded fields in T{F: 0} golang/tools