Better disabling of compression types
This commit is contained in:
@@ -10,6 +10,10 @@ import (
|
||||
|
||||
type Lzo struct{}
|
||||
|
||||
func NewLzo() (Lzo, error) {
|
||||
return Lzo{}, nil
|
||||
}
|
||||
|
||||
func (l Lzo) Decompress(data []byte) ([]byte, error) {
|
||||
return lzo.Decompress1X(bytes.NewReader(data), len(data), 0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user