Hacker News new | ask | show | jobs
by Seb-C 398 days ago
100% this, that is the easiest and less error prone way to do it.

Even if the author still insisted on using a single interface, he could also do what he wants by relying on bytes.Buffer rather than bytes.Reader.