autobrr/internal/utils/strings.go
ze0s 604c7896bd
chore: add LICENSE GPLv2-or-later (#897)
* chore: add LICENSE

* chore: add LICENSE to README
2023-05-01 16:21:59 +02:00

15 lines
319 B
Go

// Copyright (c) 2021 - 2023, Ludvig Lundgren and the autobrr contributors.
// SPDX-License-Identifier: GPL-2.0-or-later
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
}