Calling `bytes.NewBuffer` gives up ownership of the backing memory and creates a _mutable_ buffer. We don't need that, so let's use `bytes.NewReader` instead. |
||
---|---|---|
.. | ||
api.go | ||
api_endpoints.go | ||
client.go |
Calling `bytes.NewBuffer` gives up ownership of the backing memory and creates a _mutable_ buffer. We don't need that, so let's use `bytes.NewReader` instead. |
||
---|---|---|
.. | ||
api.go | ||
api_endpoints.go | ||
client.go |