MCPcopy Create free account
hub / github.com/gobeam/stringy / ContainsAll

Method ContainsAll

stringy.go:156–164  ·  view source on GitHub ↗

ContainsAll is variadic function which takes slice of strings as param and checks if they are present in input and returns boolean value accordingly

(check ...string)

Source from the content-addressed store, hash-verified

154// ContainsAll is variadic function which takes slice of strings as param and checks if they are present
155// in input and returns boolean value accordingly
156func (i *input) ContainsAll(check ...string) bool {
157 input := getInput(*i)
158 for _, item := range check {
159 if !strings.Contains(input, item) {
160 return false
161 }
162 }
163 return true
164}
165
166// Delimited is variadic function that takes two params delimiter and slice of strings i.e rule. It joins
167// the string by passed delimeter. Rule param helps to omit character you want to omit from string. By

Callers

nothing calls this directly

Calls 1

getInputFunction · 0.85

Tested by

no test coverage detected