go-playground / validator

:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
MIT License
16.79k stars 1.32k forks source link

added IsEqIgnoreCase and IsNeIgnoreCase #1076

Closed sgallizia closed 1 year ago

sgallizia commented 1 year ago

Fixes Or Enhances

I added the functions isEqIgnoreCase and isNeIgnoreCase to make case-insensitive validation.

Make sure that you've checked the boxes below before you submit PR:

@go-playground/validator-maintainers

coveralls commented 1 year ago

Coverage Status

Coverage: 74.214% (+0.02%) from 74.191% when pulling da6a86be9de2806f9e3c2238f753ea304e4d372a on sgallizia:dev_eqignorecase into 8f07b0368280d9fc70b4ffd3708b31427bbc286d on go-playground:master.

deankarn commented 1 year ago

I'll merge this PR but will change the tag names to be snake cased for consistency.