package main
import (
"fmt"
"github.com/jeremmfr/go-utils/basiccheck"
)
func main() {
sliceOfString := []string{"foo", "bar"}
if basiccheck.InSlice("bar", sliceOfString) {
fmt.Printf("bar found in %v", sliceOfString)
// Output: bar found in [foo bar]
} else {
fmt.Printf("bar not found in %v", sliceOfString)
}
}