MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / stringInSlice

Function stringInSlice

skills/persistence.go:491–498  ·  view source on GitHub ↗
(needle string, haystack []string)

Source from the content-addressed store, hash-verified

489}
490
491func stringInSlice(needle string, haystack []string) bool {
492 for _, item := range haystack {
493 if item == needle {
494 return true
495 }
496 }
497 return false
498}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected