Also, make sure you actually want a pointer to bytes.Buffer. That struct has some "scratch space" internally, which is used to avoid unneeded allocations for small buffers.
user142162
–
user142162
2017-02-22 13:12:53 +00:00
CommentedFeb 22, 2017 at 13:12
I faced the same issue. The problem was that I had declared a variable name bytes!
bytes.Buffer. That struct has some "scratch space" internally, which is used to avoid unneeded allocations for small buffers.bytes!