BREAKING CHANGE: utils package has been removed in favor of specific new packages (http, crypto, strings)
10 lines
157 B
Go
10 lines
157 B
Go
package strings
|
|
|
|
func Contains(list []string, needle string) bool {
|
|
for _, item := range list {
|
|
if item == needle {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|