Skip to content

Glossary: System Design Basics in Go

error wrapping (%w)

Also written: %w, wrap

Adding context to an error with `fmt.Errorf` and `%w` while keeping the original inside, so `errors.Is` can still find it.

Where the book teaches it

Related terms

errors.Issentinel error