Re:Structured Errors in Go
by johnmaguire on Sunday June 01, 2025 @10:06AM
(#44150981)
You can also just assign your errors to variables, and typically you only need to do so for the innermost error. Wrapping calls can just use Errorf with the %w operator.
Horses for courses.