Files
revel-cmd/utils/strings.go

12 lines
208 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
}