Refactoring of k8s helpers

This commit is contained in:
Manuel de Brito Fontes
2016-09-23 09:48:11 -03:00
parent 090d1872e9
commit 2b62384223
7 changed files with 68 additions and 79 deletions

View File

@@ -0,0 +1,11 @@
package strings
// StringInSlice check whether string a is a member of slice.
func StringInSlice(a string, slice []string) bool {
for _, b := range slice {
if b == a {
return true
}
}
return false
}