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

Function removeString

workspace.go:439–450  ·  view source on GitHub ↗
(list []string, target string)

Source from the content-addressed store, hash-verified

437}
438
439func removeString(list []string, target string) ([]string, bool) {
440 var out []string
441 removed := false
442 for _, v := range list {
443 if v == target && !removed {
444 removed = true
445 continue
446 }
447 out = append(out, v)
448 }
449 return out, removed
450}

Callers 1

workspaceRemovePathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected