mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-28 23:08:26 +00:00
12 lines
240 B
Go
12 lines
240 B
Go
package server
|
|
|
|
// ContainsStr returns true if slice has a value equal to search and false otherwise
|
|
func ContainsStr(slice []string, search string) bool {
|
|
for _, v := range slice {
|
|
if v == search {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|