github.com/ijc/docker-app@v0.6.1-0.20181012090447-c7ca8bc483fb/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  }