浏览代码

Fix Consumer example function names to follow convention

Willem van Bergen 10 年之前
父节点
当前提交
910beded38
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      consumer_test.go

+ 2 - 2
consumer_test.go

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