The reason bytes.Buffer doesn't implement io.ReaderAt is that it doesn't keep bytes in the buffer that have been read, so it's not possible to implement that method.
You can use bytes.Reader instead, which does implement io.ReaderAt and io.Seeker. To make a bytes.Reader from a bytes.Buffer, you can do `bytes.NewReader(buf.Bytes())`. hope this helps, rog. On Mon, 25 Mar 2019 at 06:06, <fri...@gmail.com> wrote: > Is there a reason I shouldn't submit a PR for bytes.Buffer.ReadAt? It > would at least help for some in memory tests. > > -- > Thanks, > fREW > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.