16ef5838c3
This is largely a move to simplify a lot of the readers Also further breaks out functions.
15 lines
211 B
Go
15 lines
211 B
Go
package decompress
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/therootcompany/xz"
|
|
)
|
|
|
|
type Xz struct{}
|
|
|
|
func (x Xz) Reader(r io.Reader) (io.ReadCloser, error) {
|
|
rdr, err := xz.NewReader(r, 0)
|
|
return io.NopCloser(rdr), err
|
|
}
|