mirror of https://github.com/nyancrimew/goop.git
11 lines
151 B
Go
11 lines
151 B
Go
|
package utils
|
||
|
|
||
|
func StringsContain(slice []string, str string) bool {
|
||
|
for _, s := range slice {
|
||
|
if s == str {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|