This commit is contained in:
孟帅
2023-04-05 12:29:33 +08:00
parent c709073ed7
commit 075a12ce7e
27 changed files with 703 additions and 168 deletions

View File

@@ -11,7 +11,7 @@ import (
"github.com/gogf/gf/v2/util/gconv"
)
// 是否包含判断
// 包含判断
// InSliceExistStr 判断字符或切片字符是否存在指定字符
func InSliceExistStr(elems interface{}, search string) bool {
@@ -26,6 +26,7 @@ func InSliceExistStr(elems interface{}, search string) bool {
default:
return gconv.String(elems) == search
}
return false
}