github.com/simonferquel/app@v0.6.1-0.20181012141724-68b7cccf26ac/internal/slices/slices.go (about)

     1  package slices
     2  
     3  // ContainsString checks wether the given string is in the specified slice
     4  func ContainsString(strings []string, s string) bool {
     5  	for _, e := range strings {
     6  		if e == s {
     7  			return true
     8  		}
     9  	}
    10  	return false
    11  }