mirror of
https://github.com/opbnq-q/nto-cli.git
synced 2025-12-07 02:10:33 +07:00
15 lines
250 B
Go
15 lines
250 B
Go
package utils
|
|
|
|
import "strings"
|
|
|
|
func ContainsMany(str string, substrs... string) bool {
|
|
count := 0
|
|
for _, substr := range substrs {
|
|
if strings.Contains(str, substr) {
|
|
count++;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
return count == len(substrs)
|
|
} |