MCPcopy Index your code
hub / github.com/devspace-sh/devspace / Contains

Function Contains

pkg/util/stringutil/stringutil.go:9–16  ·  view source on GitHub ↗
(haystack []string, needle string)

Source from the content-addressed store, hash-verified

7}
8
9func Contains(haystack []string, needle string) bool {
10 for _, v := range haystack {
11 if v == needle {
12 return true
13 }
14 }
15 return false
16}
17
18func RemoveDuplicates(arr []string) []string {
19 newArr := []string{}

Callers 15

DeployMethod · 0.92
DeployMethod · 0.92
PrintPodInfoMethod · 0.92
displayWarningsFunction · 0.92
ReplacePodMethod · 0.92
StartMultipleMethod · 0.92
EnsurePullSecretsMethod · 0.92
StartNewDependenciesMethod · 0.92
StopDevFunction · 0.92
BuildImagesFunction · 0.92
StartDevFunction · 0.92
EnsurePullSecretsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected