初始化v1
This commit is contained in:
8
utility/helper/string.go
Normal file
8
utility/helper/string.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package helper
|
||||
|
||||
import "strings"
|
||||
|
||||
// Contains 检查字符串是否包含子字符串(忽略大小写)
|
||||
func Contains(s, substr string) bool {
|
||||
return strings.Contains(strings.ToLower(s), strings.ToLower(substr))
|
||||
}
|
||||
Reference in New Issue
Block a user