Go errors: sentinel errors, error structs or fmt.Errorf — how to choose

📰 Dev.to · Odilon HUGONNOT

Three Go error patterns explained through a concrete ClaudeGate code review case. When to create a sentinel error, an error struct, or just use fmt.Errorf.

Published 21 Mar 2026
Read full article → ← Back to Reads