go-errors icon indicating copy to clipboard operation
go-errors copied to clipboard

Expose error Kind

Open dennwc opened this issue 6 years ago • 0 comments
trafficstars

Error.Kind() is not useful in regular code, but it is needed when writing tests. One use case is to check Kind and Cause or two error values recursively to make sure errors are the same.

Signed-off-by: Denys Smirnov [email protected]

dennwc avatar Sep 10 '19 19:09 dennwc