From 939eb560aeade4c59e650f122e0e492b8dc1ed83 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Thu, 20 Apr 2023 13:42:31 +0800 Subject: [PATCH] fix some comments Signed-off-by: cui fliter --- baked_in.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/baked_in.go b/baked_in.go index 48a01ca..24a29ce 100644 --- a/baked_in.go +++ b/baked_in.go @@ -928,7 +928,7 @@ func isNe(fl FieldLevel) bool { return !isEq(fl) } -// isNe is the validation function for validating that the field's string value does not equal the +// isNeIgnoreCase is the validation function for validating that the field's string value does not equal the // provided param value. The comparison is case-insensitive func isNeIgnoreCase(fl FieldLevel) bool { return !isEqIgnoreCase(fl) @@ -1648,7 +1648,7 @@ func hasValue(fl FieldLevel) bool { } } -// requireCheckField is a func for check field kind +// requireCheckFieldKind is a func for check field kind func requireCheckFieldKind(fl FieldLevel, param string, defaultNotFoundValue bool) bool { field := fl.Field() kind := field.Kind() @@ -2593,13 +2593,13 @@ func isIso3166Alpha2(fl FieldLevel) bool { return iso3166_1_alpha2[val] } -// isIso3166Alpha2 is the validation function for validating if the current field's value is a valid iso3166-1 alpha-3 country code. +// isIso3166Alpha3 is the validation function for validating if the current field's value is a valid iso3166-1 alpha-3 country code. func isIso3166Alpha3(fl FieldLevel) bool { val := fl.Field().String() return iso3166_1_alpha3[val] } -// isIso3166Alpha2 is the validation function for validating if the current field's value is a valid iso3166-1 alpha-numeric country code. +// isIso3166AlphaNumeric is the validation function for validating if the current field's value is a valid iso3166-1 alpha-numeric country code. func isIso3166AlphaNumeric(fl FieldLevel) bool { field := fl.Field()