MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / ContainsStr

Function ContainsStr

pkg/util/utilfn/utilfn.go:190–197  ·  view source on GitHub ↗
(strs []string, test string)

Source from the content-addressed store, hash-verified

188}
189
190func ContainsStr(strs []string, test string) bool {
191 for _, s := range strs {
192 if s == test {
193 return true
194 }
195 }
196 return false
197}
198
199func IsPrefix(strs []string, test string) bool {
200 for _, s := range strs {

Callers 4

WslListCommandMethod · 0.92
ConnectMethod · 0.92
determineLangFunction · 0.92
HasScopeMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected