Merge pull request #37 from afbjorklund/comp-none
Allow disabling lzo and lzma
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
//go:build !no_lzma
|
||||
package decompress
|
||||
|
||||
import (
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
//go:build no_lzma
|
||||
package decompress
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type Lzma struct{}
|
||||
|
||||
func (l Lzma) Decompress(_ []byte) ([]byte, error) {
|
||||
return nil, fmt.Errorf("lzma is not supported")
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !no_lzo
|
||||
package decompress
|
||||
|
||||
import (
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
//go:build no_lzo
|
||||
package decompress
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type Lzo struct{}
|
||||
|
||||
func (l Lzo) Decompress(_ []byte) ([]byte, error) {
|
||||
return nil, fmt.Errorf("lzo is not supported")
|
||||
}
|
||||
Reference in New Issue
Block a user