From 425120b42c2bd63e22af1b19015966c0ef025542 Mon Sep 17 00:00:00 2001 From: hau Date: Wed, 28 Oct 2020 11:34:56 +0700 Subject: [PATCH] add equal folds --- Development/Go/strings.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Development/Go/strings.md b/Development/Go/strings.md index 23b134c..9eb3890 100644 --- a/Development/Go/strings.md +++ b/Development/Go/strings.md @@ -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") +```