xujianhai666 commented on issue #85: [ISSUE #86] Add Interceptor for producer and consumer. URL: https://github.com/apache/rocketmq-client-go/pull/85#issuecomment-508355472 > Using private config members to protect them when use [functional options](https://halls-of-valhalla.org/beta/articles/functional-options-pattern-in-go,54/). [grpc example](https://github.com/grpc/grpc-go/blob/263405c7fe47948606651e13ea1c47b30622de90/dialoptions.go) there are some other work to do with that, not included here. we can do that when dealing with https://github.com/apache/rocketmq-client-go/issues/92. If we protect the private config using lower case, then we can not use the method or structure, such as ProducerOptions、DefaultProducerOptions,If we move the code to internal package, we will encounter the "import cycle" problem.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
