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
Prefer defining own error types over returning ones from 3rd parties.
E.g. not return errors from github.com/go-playground/validator/v10 but wrap them in own types.
Motivation: Returned errors, including rapped errors, become part of the public API. This makes it tricky to replace the respective 3rd party pkg later on without potentially braking user code
The text was updated successfully, but these errors were encountered:
Prefer defining own error types over returning ones from 3rd parties.
E.g. not return errors from
github.com/go-playground/validator/v10
but wrap them in own types.Motivation: Returned errors, including rapped errors, become part of the public API. This makes it tricky to replace the respective 3rd party pkg later on without potentially braking user code
The text was updated successfully, but these errors were encountered: