Skip to content

Commit 15fdf82

Browse files
joeybloggsjoeybloggs
authored andcommitted
Update verbiage for unique features for v7 cross struct cross field validation tags.
1 parent 3f4f84c commit 15fdf82

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Package validator implements value validations for structs and individual fields
1010

1111
It has the following **unique** features:
1212

13-
- Cross Field and Cross Struct validations.
13+
- Cross Field and Cross Struct validations by using validation tags or custom validators.
1414
- Slice, Array and Map diving, which allows any or all levels of a multidimensional field to be validated.
1515
- Handles type interface by determining it's underlying type prior to validation.
1616
- Handles custom field types such as sql driver Valuer see [Valuer](https://golang.org/src/database/sql/driver/types.go?s=1210:1293#L29)

baked_in.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,6 @@ func isLt(v *Validate, topStruct reflect.Value, currentStruct reflect.Value, fie
10231023
// value. For numbers, it's a simple lesser-than test; for
10241024
// strings it tests the number of characters whereas for maps
10251025
// and slices it tests the number of items.
1026-
10271026
func hasMaxOf(v *Validate, topStruct reflect.Value, currentStruct reflect.Value, field reflect.Value, fieldType reflect.Type, fieldKind reflect.Kind, param string) bool {
10281027
return isLte(v, topStruct, currentStruct, field, fieldType, fieldKind, param)
10291028
}

0 commit comments

Comments
 (0)