by recv@awesam.de:
There is currently no good way to fan out from an io.Reader to multiple readers. A
use-case we commonly encounter is piping data from one reader to another, and doing some
calculation over the piped data on the side in a goroutine.
io.TeeReader gets you only half the way, and we found a nice solution based on that and
io.Pipe.
See http://play.golang.org/p/xBBeaBdVJf for an example, piping a .tar.gz from stdin to
stdout, printing the tar headers to stderr along the way.
Would you be open to introduce a similar StreamReader implementation to io/ioutils?
by recv@awesam.de: