StringsContain returns true if provided string slice contains provided string
(strs []string, str string)
| 55 | |
| 56 | // StringsContain returns true if provided string slice contains provided string |
| 57 | func StringsContain(strs []string, str string) bool { |
| 58 | for _, s := range strs { |
| 59 | if s == str { |
| 60 | return true |
| 61 | } |
| 62 | } |
| 63 | return false |
| 64 | } |
| 65 | |
| 66 | // WildcardMatch returns true if provided string matches provided wildcard |
| 67 | func WildcardMatch(pattern, str string) bool { |
no outgoing calls
no test coverage detected
searching dependent graphs…