To get the package, execute:
go get gopkg.in/confluentinc/confluent-kafka-go.v1/kafka
To import this package, add the following line to your code:
import "gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
For more details, see the API documentation.