On Mon, 2021-06-21 at 17:30 -0500, Steven Penny wrote: > > No other compress reader even has a Close method, so I think Im > > fine: > > - https://golang.org/pkg/compress/bzip2 > - https://golang.org/pkg/compress/flate > - https://golang.org/pkg/compress/lzw > - https://golang.org/pkg/compress/zlib
flate does, it returns an io.ReadCloser[1] and is the underlying decompressor for gzip. lzw[2] and zlib[3] also returns an io.ReadCloser [1]https://golang.org/pkg/compress/flate/#NewReader [2]https://golang.org/pkg/compress/lzw/#NewReader [3]https://golang.org/pkg/compress/zlib/#NewReader However, even if they didn't (as bzip2 doesn't) it says nothing about the implementation of something that does. Dan -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/db8ca41cdf57a16ee1f599e6d3023af17aa9ac36.camel%40kortschak.io.