Builders can write batches of messages.
Builders can write batches of messages.

V0 and V1 builders now compose a slice of messages instead of
just one message. This is useful for testing compressed
message sets where the compressed payload consists of 1 or
more messages.

segmentio/kafka-go