11 lines
162 B
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
|
||
|
}
|