Try the following:
func main(){
r := regexp.MustCompile(`(.)`)
for i := 0; i < 255; i++{
d := []byte{byte(i)}
all := r.FindAll(d, -1)
fmt.Println(all)
}
}
The wildcard cannot match byte 10 (ie the new line character). Looks like a bug. I suppose regex was never really meant to work with []byte, but golang offers the []byte functions, so this is kind of an oversight.