@@ -146,7 +146,7 @@ use the UTF-8 hex representation 0x7C, which is replaced in the code as a pipe,
146146so the above will become excludesall=0x7C
147147
148148 type Test struct {
149- Field `validate:"excludesall=|"` // BAD! Do not include a a pipe!
149+ Field `validate:"excludesall=|"` // BAD! Do not include a pipe!
150150 Field `validate:"excludesall=0x7C"` // GOOD! Use the UTF-8 hex representation.
151151 }
152152
@@ -239,7 +239,7 @@ Example #2
239239
240240 map[[2]string]string with validation tag "gt=0,dive,keys,dive,eq=1|eq=2,endkeys,required"
241241 // gt=0 will be applied to the map itself
242- // eq=1|eq=2 will be applied to each array element in the the map keys
242+ // eq=1|eq=2 will be applied to each array element in the map keys
243243 // required will be applied to map values
244244
245245# Required
@@ -916,7 +916,7 @@ this with the omitempty tag.
916916# Base64URL String
917917
918918This validates that a string value contains a valid base64 URL safe value
919- according the the RFC4648 spec.
919+ according the RFC4648 spec.
920920Although an empty string is a valid base64 URL safe value, this will report
921921an empty string as an error, if you wish to accept an empty string as valid
922922you can use this with the omitempty tag.
@@ -927,7 +927,7 @@ you can use this with the omitempty tag.
927927# Base64RawURL String
928928
929929This validates that a string value contains a valid base64 URL safe value,
930- but without = padding, according the the RFC4648 spec, section 3.2.
930+ but without = padding, according the RFC4648 spec, section 3.2.
931931Although an empty string is a valid base64 URL safe value, this will report
932932an empty string as an error, if you wish to accept an empty string as valid
933933you can use this with the omitempty tag.
@@ -1361,7 +1361,7 @@ More information on https://cve.mitre.org/
13611361
13621362# Credit Card
13631363
1364- This validates that a string value contains a valid credit card number using Luhn algoritm .
1364+ This validates that a string value contains a valid credit card number using Luhn algorithm .
13651365
13661366 Usage: credit_card
13671367
0 commit comments