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
When an interface method is not exported, its implementation can be assumed to wrap errors. This can be implemented by requiring sel.Sel.IsExported() before checking for isInterface(pass, sel).
Then e.g., the test interface_on_struct can be extended to define a decode(v interface{}) error and call it without issuing an error.
The text was updated successfully, but these errors were encountered:
When an interface method is not exported, its implementation can be assumed to wrap errors. This can be implemented by requiring
sel.Sel.IsExported()
before checking forisInterface(pass, sel)
.Then e.g., the test
interface_on_struct
can be extended to define adecode(v interface{}) error
and call it without issuing an error.The text was updated successfully, but these errors were encountered: