MCPcopy Index your code
hub / github.com/DarthSim/overmind / StringsContain

Function StringsContain

utils/utils.go:57–64  ·  view source on GitHub ↗

StringsContain returns true if provided string slice contains provided string

(strs []string, str string)

Source from the content-addressed store, hash-verified

55
56// StringsContain returns true if provided string slice contains provided string
57func 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
67func WildcardMatch(pattern, str string) bool {

Callers 1

newCommandFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…