add equal folds

main
hau 2020-10-28 11:34:56 +07:00
parent d48bcdbf61
commit 425120b42c
1 changed files with 6 additions and 0 deletions

View File

@ -27,3 +27,9 @@ func newConcat(strs ...string) string {
return sb.String()
}
```
Use `EqualFold` for faster compare strings with upper, lower or mixed case:
```go
strings.EqualFold("Foo", "fOO")
```