aboutsummaryrefslogtreecommitdiff
path: root/fs/fs.go
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2017-08-08 08:05:52 +0200
committerLaria Carolin Chabowski <laria@laria.me>2017-09-26 21:35:40 +0200
commitbab0697f0e8a98cfa28c7527ee616e954c7afe91 (patch)
tree33c602bf39c4707ab4826ed6ba25c403cb07fe70 /fs/fs.go
parenta845956238e6a41479a7abd59f5c39e71f3f85f4 (diff)
downloadpetrific-bab0697f0e8a98cfa28c7527ee616e954c7afe91.tar.gz
petrific-bab0697f0e8a98cfa28c7527ee616e954c7afe91.tar.bz2
petrific-bab0697f0e8a98cfa28c7527ee616e954c7afe91.zip
Add OpenWritable to fs interfaces
Diffstat (limited to 'fs/fs.go')
-rw-r--r--fs/fs.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/fs.go b/fs/fs.go
index b06ded8..d6d0618 100644
--- a/fs/fs.go
+++ b/fs/fs.go
@@ -23,7 +23,8 @@ type File interface {
type RegularFile interface {
File
- Open() (io.ReadWriteCloser, error)
+ Open() (io.ReadCloser, error)
+ OpenWritable() (io.WriteCloser, error)
}
type Dir interface {