diff --git a/env/reader.go b/env/reader.go index 8c56147..91fe894 100644 --- a/env/reader.go +++ b/env/reader.go @@ -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 //