Update verbiage for unique features for v7 cross struct cross field validation tags.

pull/161/head
joeybloggs 9 years ago
parent 3f4f84c358
commit 15fdf82c30
  1. 2
      README.md
  2. 1
      baked_in.go

@ -10,7 +10,7 @@ Package validator implements value validations for structs and individual fields
It has the following **unique** features: It has the following **unique** features:
- Cross Field and Cross Struct validations. - Cross Field and Cross Struct validations by using validation tags or custom validators.
- Slice, Array and Map diving, which allows any or all levels of a multidimensional field to be validated. - Slice, Array and Map diving, which allows any or all levels of a multidimensional field to be validated.
- Handles type interface by determining it's underlying type prior to validation. - Handles type interface by determining it's underlying type prior to validation.
- Handles custom field types such as sql driver Valuer see [Valuer](https://golang.org/src/database/sql/driver/types.go?s=1210:1293#L29) - Handles custom field types such as sql driver Valuer see [Valuer](https://golang.org/src/database/sql/driver/types.go?s=1210:1293#L29)

@ -1023,7 +1023,6 @@ func isLt(v *Validate, topStruct reflect.Value, currentStruct reflect.Value, fie
// value. For numbers, it's a simple lesser-than test; for // value. For numbers, it's a simple lesser-than test; for
// strings it tests the number of characters whereas for maps // strings it tests the number of characters whereas for maps
// and slices it tests the number of items. // and slices it tests the number of items.
func hasMaxOf(v *Validate, topStruct reflect.Value, currentStruct reflect.Value, field reflect.Value, fieldType reflect.Type, fieldKind reflect.Kind, param string) bool { func hasMaxOf(v *Validate, topStruct reflect.Value, currentStruct reflect.Value, field reflect.Value, fieldType reflect.Type, fieldKind reflect.Kind, param string) bool {
return isLte(v, topStruct, currentStruct, field, fieldType, fieldKind, param) return isLte(v, topStruct, currentStruct, field, fieldType, fieldKind, param)
} }

Loading…
Cancel
Save