Add a rac.Reader.Close method

This commit is contained in:
Nigel Tao committed 2019-08-31 10:43:18 +10:00
1 parent f379f7f905
commit e0d9749f4e
4 files changed
+18 -5

No files matched your search

+1
View File
@@ -75,6 +75,7 @@ func Example_roundTrip() {
CompressedSize: int64(len(compressed)),
CodecReaders: []rac.CodecReader{&raczlib.CodecReader{}},
}
defer r.Close()
// Read the whole file.
wBuf := &bytes.Buffer{}