Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Too Much Go Misdirection. Parent comment
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.
There are no comments on this comment yet.
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.