Better disabling of compression types
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
//go:build no_obsolete
|
||||
|
||||
package decompress
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
type Lzma struct{}
|
||||
|
||||
func NewLzma() (Lzma, error) {
|
||||
return Lzma{}, errors.New("lzma compression is disable in this build with no_obsolete")
|
||||
}
|
||||
|
||||
func (l Lzma) Decompress(data []byte) ([]byte, error) {
|
||||
return nil, errors.New("lzma compression is disable in this build with no_obsolete")
|
||||
}
|
||||
Reference in New Issue
Block a user