MCPcopy
hub / github.com/karan/joe / stringInSlice

Function stringInSlice

utils.go:114–121  ·  view source on GitHub ↗
(a string, list []string)

Source from the content-addressed store, hash-verified

112}
113
114func stringInSlice(a string, list []string) bool {
115 for _, b := range list {
116 if b == a {
117 return true
118 }
119 }
120 return false
121}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected