@@ -197,6 +197,11 @@ Here is a list of the current built in validators:
197197 equal to the parameter given. For slices, arrays, and maps,
198198 validates the number of items. (Usage: eq=10)
199199
200+ ne
201+ For strings & numbers, eq will ensure that the value is not
202+ equal to the parameter given. For slices, arrays, and maps,
203+ validates the number of items. (Usage: eq=10)
204+
200205 gt
201206 For numbers, this will ensure that the value is greater than the
202207 parameter given. For strings, it checks that the string length
@@ -233,6 +238,13 @@ Here is a list of the current built in validators:
233238 Validation on Password field using validate.Struct Usage(eqfield=ConfirmPassword)
234239 Validating by field validate.FieldWithValue(password, confirmpassword, "eqfield")
235240
241+ nefield
242+ This will validate the field value against another fields value either within
243+ a struct or passed in field.
244+ usage examples are for ensuring two colors are not the same:
245+ Validation on Color field using validate.Struct Usage(nefield=Color2)
246+ Validating by field validate.FieldWithValue(color1, color2, "nefield")
247+
236248 gtfield
237249 Only valid for Numbers and time.Time types, this will validate the field value
238250 against another fields value either within a struct or passed in field.
0 commit comments