pkg / errors

Simple error handling primitives

Home Page:https://godoc.org/github.com/pkg/errors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QUESTION: How does one incorporate this with behaviors?

ntucker opened this issue · comments

In https://dave.cheney.net/2016/04/27/dont-just-check-errors-handle-them-gracefully there is talk about having interfaces for certain types of checks, but how does one actually build a new error with these interfaces and also use the cool error types provided here?

One might think composing the types would work, but this package doesn't make its types public.

(In case it wasn't clear from the close: thanks for the prompt and clear explanation!)