MCPcopy Create free account
hub / github.com/Threadfin/Threadfin / indexOfString

Function indexOfString

src/internal/imgcache/tools.go:14–23  ·  view source on GitHub ↗
(str string, slice []string)

Source from the content-addressed store, hash-verified

12}
13
14func indexOfString(str string, slice []string) int {
15
16 for i, v := range slice {
17 if str == v {
18 return i
19 }
20 }
21
22 return -1
23}
24
25func removeStringFromSlice(str string, slice []string) []string {
26

Callers 2

removeStringFromSliceFunction · 0.70
NewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected