patchman/client/utils/isStringInSlice.go

11 lines
162 B
Go
Raw Permalink Normal View History

2023-10-22 16:11:13 +02:00
package utils
func IsStringInSlice(target string, slice []string) bool {
for i := range slice {
if slice[i] == target {
return true
}
}
return false
}