Closed
Description
Filing on behalf of an internal user, who requests that we add convenience wrappers of Compress and Decompress:
func Decompress(b []byte) ([]byte, error) {
rd, err := NewReader(bytes.NewReader(b))
if err != nil {
return nil, err
}
d, err := ioutil.ReadAll(rd)
if cerr := rd.Close(); err == nil {
err = cerr
}
return d, err
}
What are people's thoughts?