16ef5838c3
This is largely a move to simplify a lot of the readers Also further breaks out functions.
15 lines
221 B
Go
15 lines
221 B
Go
package decompress
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/klauspost/compress/zstd"
|
|
)
|
|
|
|
type Zstd struct{}
|
|
|
|
func (z Zstd) Reader(src io.Reader) (io.ReadCloser, error) {
|
|
r, err := zstd.NewReader(src)
|
|
return r.IOReadCloser(), err
|
|
}
|