Includes Error in FieldError's interface

pull/666/head
David Ketch 4 years ago
parent ea924ce89a
commit 1bf11c9299
  1. 3
      errors.go

@ -155,6 +155,9 @@ type FieldError interface {
// NOTE: if no registered translator can be found it returns the same as
// calling fe.Error()
Translate(ut ut.Translator) string
// Error returns the FieldError's message
Error() string
}
// compile time interface checks

Loading…
Cancel
Save