marsevilspirit opened a new pull request, #2946:
URL: https://github.com/apache/dubbo-go/pull/2946

   ## description
   
   This pull request introduces a new functional option, `WithInterface`, for 
the client-side reference configuration.
   
   ### Motivation
   
   To provide a clear and idiomatic way for users to configure the remote 
service they intend to call, this PR adds `WithInterface` following the common 
functional options pattern. This approach makes the client setup more readable 
and consistent with modern Go practices.
   
   This configuration is essential for the service discovery mechanism to 
correctly locate and route requests to the appropriate provider.
   
   ### Changes
   
     - Adds a new exported function `WithInterface(interfaceName string) 
ReferenceOption`.
     - This function allows the target interface name to be passed directly 
into the client constructor.
   
   ### Usage Example
   
   ```go
     svc, err := greet.NewGreetService(
         cli,
         client.WithInterface("com.your.company.GreetService"),
     )
   ```


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to