Added group subcommand with add and delete commands
This commit is contained in:
12
lib/util/slice.go
Normal file
12
lib/util/slice.go
Normal file
@ -0,0 +1,12 @@
|
||||
package util
|
||||
|
||||
// returns true if the needle exists in the haystack
|
||||
func ContainsString(haystack []string, needle string) bool {
|
||||
for _, val := range haystack {
|
||||
if val == needle {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
Reference in New Issue
Block a user