11 lines
160 B
Go
11 lines
160 B
Go
package misc
|
|
|
|
func StringIsInStringSlice(slice []string, s string) bool {
|
|
for _, item := range slice {
|
|
if item == s {
|
|
return true
|
|
}
|
|
}
|
|
|
|
return false
|
|
}
|