Add users filtering
This commit is contained in:
parent
a8fdfb61c0
commit
ef67682463
6 changed files with 150 additions and 19 deletions
|
|
@ -10,3 +10,13 @@ func Panic(err error) {
|
|||
log.Fatalf("%s\n", err)
|
||||
}
|
||||
}
|
||||
|
||||
// InSlice detects value presence in a string slice
|
||||
func InSlice(value string, slice []string) bool {
|
||||
for _, val := range slice {
|
||||
if value == val {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue