(v0.1.1) Automated packaging of release by Packagr
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
package utils
|
||||
|
||||
func SliceIncludes(slice []string, item string) bool {
|
||||
for _, val := range slice {
|
||||
if val == item {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
//func indexOf(answers []interface{}, item interface{}) (int) {
|
||||
// for k, v := range answers {
|
||||
// if v == item {
|
||||
// return k
|
||||
// }
|
||||
// }
|
||||
// return -1
|
||||
//}
|
||||
Reference in New Issue
Block a user