Added group subcommand with add and delete commands

This commit is contained in:
Gregory Ballantine
2018-07-15 23:27:27 -04:00
parent b97a50b587
commit 9dc381c0a3
2 changed files with 193 additions and 0 deletions

12
lib/util/slice.go Normal file
View 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
}