voidwalker/util/slice.go

11 lines
143 B
Go
Raw Normal View History

package util
func StringInSlice(a string, list []string) bool {
for _, b := range list {
if b == a {
return true
}
}
return false
}