InfraMaxx

Go for Infrastructure

Error wrapping

Intermediate · 5 min read · quiz included

Explain how fmt.Errorf with %w builds an error chain and how errors.Is and errors.As read it, so a sentinel error still reaches the handler that picks the status code.

What you will be able to do

What is in the lesson

Read this lessonFree. No account needed.

More in Go for Infrastructure

All 40 Go for Infrastructure lessons