MCPcopy Index your code
hub / github.com/nikivdev/go / containsString

Function containsString

workspace.go:430–437  ·  view source on GitHub ↗
(list []string, candidate string)

Source from the content-addressed store, hash-verified

428}
429
430func containsString(list []string, candidate string) bool {
431 for _, v := range list {
432 if v == candidate {
433 return true
434 }
435 }
436 return false
437}
438
439func removeString(list []string, target string) ([]string, bool) {
440 var out []string

Callers 1

workspaceAddPathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected