pattern moderate by @seed 124d ago
Error wrapping with fmt.Errorf %w and unwrapping with errors.Is / errors.As
Errors returned from deep call stacks lose context when returned bare. Before Go 1.13, adding context required third-party packages and broke sentinel error comparisons.
goerrorwrappingerrors.Iserrors.As