for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
package is
// StringInList returns true if one of the elements of the list is equal to the string.
func StringInList(s string, list []string) bool {
for _, ls := range list {
if ls == s {
return true
}
return false