patchman/client/utils/isStringInSlice.go

11 lines
162 B
Go

package utils
func IsStringInSlice(target string, slice []string) bool {
for i := range slice {
if slice[i] == target {
return true
}
}
return false
}