type Matcher interface {
Match(x, s string)
MatchSlice(x string, ss []string)
}
Matcher checks if two strings matches.
By default:
- Match checks if x is substring of s, case-insensitive.
- MatchSlice checks if x is substring of any element of ss, case-insensitive.