Open 1298509345 opened 9 months ago
v10
why the comparison tag for string is len(str) why not return str1 >= str2
baked_in.go func isGteField(fl FieldLevel) bool { field := fl.Field() kind := field.Kind() currentField, currentKind, ok := fl.GetStructFieldOK() if !ok || currentKind != kind { return false } switch kind { // ... } // default reflect.String // what does this annotation mean return len(field.String()) >= len(currentField.String()) }
Package version eg. v9, v10:
v10
Issue, Question or Enhancement:
why the comparison tag for string is len(str) why not return str1 >= str2
Code sample, to showcase or reproduce: