Jelajahi Sumber

Fix Consumer example function names to follow convention

Willem van Bergen 10 tahun lalu
induk
melakukan
910beded38
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      consumer_test.go

+ 2 - 2
consumer_test.go

@@ -243,7 +243,7 @@ func TestConsumerRebalancingMultiplePartitions(t *testing.T) {
 	seedBroker.Close()
 }
 
-func ExampleConsumerWithSelect() {
+func ExampleConsumer_usingSelect() {
 	master, err := NewConsumer([]string{"localhost:9092"}, nil)
 	if err != nil {
 		panic(err)
@@ -285,7 +285,7 @@ consumerLoop:
 	fmt.Println("Got", msgCount, "messages.")
 }
 
-func ExampleConsumerWithGoroutines() {
+func ExampleConsumer_usingGoroutines() {
 	master, err := NewConsumer([]string{"localhost:9092"}, nil)
 	if err != nil {
 		panic(err)