mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
12 lines
209 B
Go
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
|
|
}
|