11 lines
186 B
Go
11 lines
186 B
Go
|
package utils
|
||
|
|
||
|
// IsIn checks if an array have a value
|
||
|
func IsIn(arr []string, value string) bool {
|
||
|
for _, item := range arr {
|
||
|
if item == value {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|