Browse Source

env: extend Reader{} to implement io.Closer

Signed-off-by: Alejandro Mery <amery@jpi.io>
v0.2.x
Alejandro Mery 3 years ago
parent
commit
9f4f801066
  1. 7
      env/reader.go

7
env/reader.go vendored

@ -21,6 +21,13 @@ func (rd *Reader) Read(b []byte) (int, error) {
return rd.in.Read(b)
}
func (rd *Reader) Close() error {
if f, ok := rd.in.(io.Closer); ok {
return f.Close()
}
return nil
}
//
// Constructors
//

Loading…
Cancel
Save