(section, value, message string)
| 38 | } |
| 39 | |
| 40 | func (v *Validator) AddError(section, value, message string) { |
| 41 | v.Errors = append(v.Errors, ValidationError{ |
| 42 | Section: section, |
| 43 | Value: value, |
| 44 | Message: message, |
| 45 | }) |
| 46 | } |
| 47 | |
| 48 | func (v *Validator) HasError(section string) bool { |
| 49 | for _, err := range v.Errors { |
no outgoing calls
no test coverage detected