From 15fdf82c301d0be6edd16337ba5faf2bb2263117 Mon Sep 17 00:00:00 2001 From: joeybloggs Date: Wed, 19 Aug 2015 13:32:32 -0400 Subject: [PATCH] Update verbiage for unique features for v7 cross struct cross field validation tags. --- README.md | 2 +- baked_in.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 3eaa61b..ca9e9f8 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Package validator implements value validations for structs and individual fields 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. - 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) diff --git a/baked_in.go b/baked_in.go index 0378d8b..46cf022 100644 --- a/baked_in.go +++ b/baked_in.go @@ -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 // strings it tests the number of characters whereas for maps // 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 { return isLte(v, topStruct, currentStruct, field, fieldType, fieldKind, param) }