Skip to content
Opensource internals
  • Posts

Stdlib

Go's Error Wrapping: %w, errors.Is and a Tree of Causes

Oct 21, 2026 19 min read Jay Hubbert

Wrapping is two optional methods, Unwrap and Is; fmt.Errorf with %w builds a *wrapError, errors.Is and errors.As walk the resulting tree, and errors.Join turns it into a branching …

GoInternalsErrorsIdiomatic goStdlib

Read more →

How Go's Unicode Tables Are Generated and Why the Runtime Doesn't Use Them

Oct 21, 2026 25 min read Jay Hubbert

Go’s Unicode tables are generated range tables with stride compression, a 256-entry Latin-1 byte table for the fast path, and an accept-ranges decoder for UTF-8; the runtime …

GoInternalsUnicodeUtf 8Stdlib

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·