Sarama Version: I didn't fiugre out where to check Sarama version
Kafka Version: kafka_2.11-0.8.2.1
Go Version:1.5
auto.offset.reset=smallest
I want to know: with go_kafka_client, I want to get message from kafka from beginning just like --from-beginning param of kafka-console-consumer.sh; How can I set the consumer.conf to make it?
In Sarama you need to set the Consumer.Offsets.Initial value to OffsetOldest, but if you have a separate consumer.conf file it sounds like you may not be using Sarama at all. Are you sure you're not using some different library?
Most helpful comment
In Sarama you need to set the
Consumer.Offsets.Initialvalue toOffsetOldest, but if you have a separateconsumer.conffile it sounds like you may not be using Sarama at all. Are you sure you're not using some different library?