govalidator icon indicating copy to clipboard operation
govalidator copied to clipboard

IsNull() uses strings.TrimSpace() better than len()

Open iiinsomnia opened this issue 6 years ago • 3 comments

IsNull() uses strings.TrimSpace() better than len()

iiinsomnia avatar Dec 23 '17 09:12 iiinsomnia

trim space \n \t eg.

iiinsomnia avatar Dec 23 '17 09:12 iiinsomnia

Wondering if IsBlank should be implemented? Where IsNull would produce false on \n \t and IsBlank would product true, IsBlank would include the use of strings.TrimSpace()

jasonlam604 avatar Dec 27 '17 16:12 jasonlam604

Hello guys! I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back Link to my repo: create issue there and we'll discuss it.

sergeyglazyrindev avatar Oct 17 '21 21:10 sergeyglazyrindev