|
|
|
|
|
by 0points
398 days ago
|
|
When you are working with streaming data, you really should be passing around io.Readers if you want any sort of performance out of it. A []byte require you to read ALL data in advance. And if you still end up with []byte and need to use a interface taking io.Reader, then you wrap []byte in a bytes.Buffer which implements io.Reader. |
|