mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
11 lines
142 B
Go
11 lines
142 B
Go
package stringutil
|
|
|
|
func Contains(arr []string, s string) bool {
|
|
for _, e := range arr {
|
|
if e == s {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|