Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tv42/moreio

Go package that combines a ReadCloser and a WriteCloser into a ReadWriteCloser
https://github.com/tv42/moreio

Last synced: 20 days ago
JSON representation

Go package that combines a ReadCloser and a WriteCloser into a ReadWriteCloser

Awesome Lists containing this project

README

        

============================================================================
``moreio`` - combine a ReadCloser and a WriteCloser into a ReadWriteCloser
============================================================================

This is a simple utility package. Hopefully this will get integrated
into Go upstream ``io`` package.

If you have a ``ReadCloser`` and a ``WriteCloser``, you can combine
them (reads go to ``ReadCloser``, writes go to ``WriteCloser``, close
goes to both) with a simple call to ``NewReadWriteCloser``.

This is most useful for taking the read end of one pipe, the write end
of another, and making those appear like a single logical file.