Closed amone-bit closed 20 hours ago
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
It seems a little different, I don't want to read all data to memory to avoid overload. The method in https://github.com/golang/go/issues/64274 buffer seems will be bigger, finally bigger than memory with the reader call Read().
By definition, io.Reader
s are single use only. I don't see how this is feasible.
Proposal Details
Sometimes I need a same io.reader, I don't want to create twice or use io.teeReader to read full data to memory. Maybe add a new API to copy io.reader will be convenient.