mirror of
https://github.com/restic/restic.git
synced 2026-11-25 15:17:50 +00:00
Make ReadCloser public
This commit is contained in:
1 parent
04cd318f6c
commit
8d229bfd21
1 file changed
+5
@@ -125,6 +125,11 @@ func memCreate(be *MemoryBackend) (Blob, error) {
|
|||||||
return blob, nil
|
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.
|
// readCloser wraps a reader and adds a noop Close method.
|
||||||
type readCloser struct {
|
type readCloser struct {
|
||||||
io.Reader
|
io.Reader
|
||||||
|
|||||||
Reference in new issue
Block a user