MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / stringContains

Function stringContains

mob.go:236–244  ·  view source on GitHub ↗
(list []string, element string)

Source from the content-addressed store, hash-verified

234}
235
236func stringContains(list []string, element string) bool {
237 found := false
238 for i := 0; i < len(list); i++ {
239 if list[i] == element {
240 found = true
241 }
242 }
243 return found
244}
245
246func main() {
247 run(os.Args)

Callers 1

existsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected