mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
12 lines
197 B
Go
12 lines
197 B
Go
package utils
|
|
|
|
// StrSliceContains check if slice contains string
|
|
func StrSliceContains(s []string, str string) bool {
|
|
for _, v := range s {
|
|
if v == str {
|
|
return true
|
|
}
|
|
}
|
|
|
|
return false
|
|
}
|