MCPcopy Index your code
hub / github.com/cloudfoundry/cli / existsIn

Function existsIn

util/ui/ui_for_push.go:224–231  ·  view source on GitHub ↗
(str string, ary []string)

Source from the content-addressed store, hash-verified

222}
223
224func existsIn(str string, ary []string) bool {
225 for _, val := range ary {
226 if val == str {
227 return true
228 }
229 }
230 return false
231}
232
233func sortedUniqueArray(ary1 []string, ary2 []string) []string {
234 uniq := append([]string{}, ary1...)

Callers 2

displayDiffForStringsMethod · 0.85
sortedUniqueArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected