MCPcopy Create free account
hub / github.com/devspace-sh/devspace / indexOf

Function indexOf

pkg/devspace/watch/watch_test.go:178–185  ·  view source on GitHub ↗
(element string, data []string)

Source from the content-addressed store, hash-verified

176}
177
178func indexOf(element string, data []string) int {
179 for k, v := range data {
180 if element == v {
181 return k
182 }
183 }
184 return -1 //not found.
185}

Callers 1

TestWatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected