xujianhai666 opened a new issue #68: Use ConfigOption withxxxx for simple usage URL: https://github.com/apache/pulsar-client-go/issues/68 **Is your feature request related to a problem? Please describe.** now, when we use client 、producer、consumer, we must provide CleintOption ProducerOption ConsumerOption, but there are many params on Option, which puzzle users. according to Rob Pike: https://commandcenter.blogspot.com/2014/01/self-referential-functions-and-design.html and Dave cheney: https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis , we should use WithXXX. for example: ``` type ClientOption func(opts ClientOptions) func WithURL(URL string) ClientOption { return func(opts ClientOptions) { ..... } } ``` **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional context** Add any other context or screenshots about the feature request here.
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services