Hi everyone,I often encounter deep error chains where errors are wrapped across several Go packages and that makes it often hard to find a usable error type to use with `errors.As` or `errors.Is`.Could it make sense to add an `errors.Chain` function to Go that returns a slice with tuples of error type (reflect.Type) and the respective error?
Quick example:Best,Michael
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/acab291d-21bc-4c84-a19a-7f9901cc8035n%40googlegroups.com.