You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have code that implements a more advanced error model which is passed around as its own interface rather than error (which it does, implement). The code:
Dees not do an error interface check and therefore does not work for anything except a literal error type. A proper type check would look something like:
I have code that implements a more advanced error model which is passed around as its own interface rather than
error
(which it does, implement). The code:https://github.com/hexdigest/gowrap/blob/master/generator/types.go#L95
Dees not do an error interface check and therefore does not work for anything except a literal
error
type. A proper type check would look something like:where:
Unfortunately this would require a much larger re-writing of the existing code so I'm only filing an issue instead of a fix :(.
The text was updated successfully, but these errors were encountered: