Skip to content

paulbellamy/infinite_multi_reader

Repository files navigation

InfiniteMultiReader Build Status

Implements a Reader which can read from a (potentially) infinite sequence of other readers. Use like:

getNextReader := func() (io.Reader, error) {
  // ...
  // return the_next_reader, err
}
reader := InfiniteMultiReader(getNextReader)

The getNextReader function should return nil, io.EOF when there are no more readers to consume.

About

An InfiniteMultiReader function for Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages