fake-sms/internal/route/util.go

12 lines
159 B
Go

package route
func contains(search string, items ...string) bool {
for _, item := range items {
if item == search {
return true
}
}
return false
}