Make ReadCloser public

This commit is contained in:
Alexander Neumann 2015-12-02 21:47:44 +01:00
parent 04cd318f6c
commit 8d229bfd21
1 changed files with 5 additions and 0 deletions

View File

@ -125,6 +125,11 @@ func memCreate(be *MemoryBackend) (Blob, error) {
return blob, nil
}
// ReadCloser wraps a reader and adds a noop Close method.
func ReadCloser(rd io.Reader) io.ReadCloser {
return readCloser{rd}
}
// readCloser wraps a reader and adds a noop Close method.
type readCloser struct {
io.Reader