Go's Error Wrapping: %w, errors.Is and a Tree of Causes
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 …
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 …