04d914d403
By setting the buildtags "no_lzo" and/or "no_lzma", one can drop the library dependency on lzo and lzma. The same could be done for xz as well, but there are still lots of archives using xz compression out there.
13 lines
178 B
Go
13 lines
178 B
Go
//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")
|
|
}
|