fake-sms/internal/route/util.go

12 lines
159 B
Go
Raw Permalink Normal View History

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