github.com/mlmmr/revel-cmd@v0.21.2-0.20191112133115-68d8795776dd/utils/strings.go (about)

     1  package utils
     2  
     3  // Return true if the target string is in the list
     4  func ContainsString(list []string, target string) bool {
     5  	for _, el := range list {
     6  		if el == target {
     7  			return true
     8  		}
     9  	}
    10  	return false
    11  }