I'd like to introduce Errlog, a hackable error handling package that uses stack trace and static analysis to determine which func call is responsible for your error.
Wrap the error you want to debug with
err := failingFunc()
if errlog.Debug(err) {
return err
}
Output:
Pluggable to any logger in-place.
Top comments (2)
The tool is so excellent! Thanks for sharing.
Thanks a lot for your feedback !