Takahiro Suzuki | d7bf820 | 2020-12-17 20:21:59 +0900 | [diff] [blame] | 1 | // +build !cgo |
2 | |||||
3 | package sarama | ||||
4 | |||||
5 | import ( | ||||
6 | "errors" | ||||
7 | ) | ||||
8 | |||||
9 | var errZstdCgo = errors.New("zstd compression requires building with cgo enabled") | ||||
10 | |||||
11 | func zstdDecompress(dst, src []byte) ([]byte, error) { | ||||
12 | return nil, errZstdCgo | ||||
13 | } | ||||
14 | |||||
15 | func zstdCompressLevel(dst, src []byte, level int) ([]byte, error) { | ||||
16 | return nil, errZstdCgo | ||||
17 | } |