mirror of https://github.com/docker/compose.git
12 lines
223 B
Go
12 lines
223 B
Go
|
package utils
|
||
|
|
||
|
// StringContains check if an array contains a specific value
|
||
|
func StringContains(array []string, needle string) bool {
|
||
|
for _, val := range array {
|
||
|
if val == needle {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|