aboutsummaryrefslogtreecommitdiffstats
path: root/core/memory.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/memory.go')
-rw-r--r--core/memory.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/memory.go b/core/memory.go
index 97b1b9b..dabee3a 100644
--- a/core/memory.go
+++ b/core/memory.go
@@ -1,7 +1,8 @@
-package core
+package core
import (
"bytes"
+ "io"
"io/ioutil"
)
@@ -39,12 +40,12 @@ func (o *MemoryObject) Size() int64 { return o.sz }
func (o *MemoryObject) SetSize(s int64) { o.sz = s }
// Reader returns a ObjectReader used to read the object's content.
-func (o *MemoryObject) Reader() (ObjectReader, error) {
+func (o *MemoryObject) Reader() (io.ReadCloser, error) {
return ioutil.NopCloser(bytes.NewBuffer(o.cont)), nil
}
// Writer returns a ObjectWriter used to write the object's content.
-func (o *MemoryObject) Writer() (ObjectWriter, error) {
+func (o *MemoryObject) Writer() (io.WriteCloser, error) {
return o, nil
}