-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed as not planned
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Description
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?
Metadata
Metadata
Assignees
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.