mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
9 lines
226 B
Go
9 lines
226 B
Go
package common
|
|
|
|
import "sort"
|
|
|
|
func IsSubString(target string, str_array []string) bool {
|
|
sort.Strings(str_array)
|
|
index := sort.SearchStrings(str_array, target)
|
|
return index < len(str_array) && str_array[index] == target
|
|
}
|