package main
import (
"fmt"
"strings"
)
func main() {
res := strings.EqualFold("abc", "AbC")
fmt.Println(res)
res = strings.EqualFold("abc", "AbCd")
fmt.Println(res)
}
// output:
// true
// false
case insensitive string compare in go
欢迎转载,注明出处:刘世明的博客 » case insensitive string compare in go
最新评论