Files
revel-cmd/utils/strings.go
Paul Tötterman 3d924a016b Lint fixes
2020-10-19 13:40:52 +03:00

12 lines
209 B
Go

package utils
// Return true if the target string is in the list.
func ContainsString(list []string, target string) bool {
for _, el := range list {
if el == target {
return true
}
}
return false
}