安装库时出现以下错误golanggithub.com/Shopify/saramakafka


go get github.com/Shopify/sarama


# github.com/Shopify/sarama

go/src/github.com/Shopify/sarama/config.go:678:37: undefined: io.Discard

go/src/github.com/Shopify/sarama/decompress.go:43:10: undefined: io.ReadAll

go/src/github.com/Shopify/sarama/decompress.go:55:10: undefined: io.ReadAll

go/src/github.com/Shopify/sarama/sarama.go:89:29: undefined: io.Discard