Adding context to errors in Go
· 3 min read
This post compares how to enrich Go errors — both sentinel and typed — with additional context using github.com/ygrebnov/errorc.With versus the standard fmt.Errorf approach.
This post compares how to enrich Go errors — both sentinel and typed — with additional context using github.com/ygrebnov/errorc.With versus the standard fmt.Errorf approach.