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.
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
FAQ
- What changed in Go on May 31, 2026?
- Go's regexp package just got a critical fix for script lookups that was causing collisions in Unicode handling.
- What should Go teams do about it?
- Update to next Go release when available - regexp canonicalization fix is correctness-critical for Unicode patterns • Upgrade gopls to pick up embedded field InlayHints if you're on Go 1.27+
- Which Go repositories shipped on May 31, 2026?
- golang/go, golang/tools