(v *InterfaceValidation)
| 57 | } |
| 58 | |
| 59 | func ValidateInterfaceMissing(v *InterfaceValidation) (interface{}, error) { |
| 60 | if v.Required { |
| 61 | return nil, ErrorMustBeDefined() |
| 62 | } |
| 63 | return validateInterface(v.Default, v) |
| 64 | } |
| 65 | |
| 66 | func ValidateInterfaceProvided(val interface{}, v *InterfaceValidation) (interface{}, error) { |
| 67 | if v.CantBeSpecifiedErrStr != nil { |
no test coverage detected