package main
import (
"bytes"
"fmt"
)
func main() {
slice_1 := []byte{
'A'
,
'N'
,
'M'
,
'O'
,
'P'
,
'Q'
}
res1 := bytes.ContainsAny(slice_1,
"A"
)
res2 := bytes.ContainsAny(slice_1,
"a"
)
res3 := bytes.ContainsAny([]byte(
"GeeksforGeeks"
),
"ksjkd"
)
res4 := bytes.ContainsAny([]byte(
"Geeks"
),
""
)
res5 := bytes.ContainsAny([]byte(
""
),
""
)
fmt.Println(
"Result 1:"
, res1)
fmt.Println(
"Result 2:"
, res2)
fmt.Println(
"Result 3:"
, res3)
fmt.Println(
"Result 4:"
, res4)
fmt.Println(
"Result 5:"
, res5)
}