Files
gf/third/github.com/Shopify/sarama/zstd_fallback.go
2019-01-02 11:02:03 +08:00

18 lines
315 B
Go

// +build !cgo
package sarama
import (
"errors"
)
var errZstdCgo = errors.New("zstd compression requires building with cgo enabled")
func zstdDecompress(dst, src []byte) ([]byte, error) {
return nil, errZstdCgo
}
func zstdCompressLevel(dst, src []byte, level int) ([]byte, error) {
return nil, errZstdCgo
}