mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 21:35:52 +00:00
81e1e1c05d
Pointed out by: @slackpad
12 lines
184 B
Go
12 lines
184 B
Go
package lib
|
|
|
|
// StrContains checks if a list contains a string
|
|
func StrContains(l []string, s string) bool {
|
|
for _, v := range l {
|
|
if v == s {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|