fix: modify interface check way (#3327)

This commit is contained in:
Jesse
2022-10-20 00:49:19 +08:00
committed by GitHub
parent 33ab0fc155
commit 51aea73ba0
6 changed files with 6 additions and 6 deletions

View File

@ -43,7 +43,7 @@ func (err SliceValidationError) Error() string {
}
}
var _ StructValidator = &defaultValidator{}
var _ StructValidator = (*defaultValidator)(nil)
// ValidateStruct receives any kind of type, but only performed struct or pointer to struct type.
func (v *defaultValidator) ValidateStruct(obj any) error {