I really like the implementation but would love to have a FindAll(haystack []byte) and also a Build(patterns [][]byte). I saw that all patterns and haystacks are converted to []byte internally. What do you think about accepting []byte by default and have the string methods call these? E.g. FindAllByte(haystack []byte) and then FindAll(haystack string) { FindAllByte([]byte(haystack)) }.
Hi,
I really like the implementation but would love to have a
FindAll(haystack []byte)
and also aBuild(patterns [][]byte)
. I saw that all patterns and haystacks are converted to[]byte
internally. What do you think about accepting[]byte
by default and have thestring
methods call these? E.g.FindAllByte(haystack []byte)
and thenFindAll(haystack string) { FindAllByte([]byte(haystack)) }
.