mini-beieli-web/helper.go

21 lines
299 B
Go

package main
import (
"log"
)
// Contains tells whether a contains x.
func Contains(a []string, x string) bool {
log.Println("Search for: " + x)
for _, n := range a {
log.Println("Piece of Array: " + n)
if x == n {
return true
}
if "@"+x == n {
return true
}
}
return false
}