Original post

Hello. I added the package “bytes” to a program I’m working on but when I used bytes.Newreader i got “bytes.NewReader undefined (type []byte has no field or method NewReader)”

Context of how im using it

out := bytes.NewReader([]byte{0,1,2,3,4})

Why is this?