You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "justxuewei (via GitHub)" <gi...@apache.org> on 2023/03/13 15:36:44 UTC

[GitHub] [dubbo-go] justxuewei commented on issue #2253: 请问如何让go-server同时支持java-client和go-client的调用

justxuewei commented on issue #2253:
URL: https://github.com/apache/dubbo-go/issues/2253#issuecomment-1466381034

   See [here](https://cn.dubbo.apache.org/zh-cn/overview/mannual/golang-sdk/tutorial/develop/interflow/call_java/)
   
   ```go
   // UserProvider 客户端存根类
   type UserProvider struct {
     // dubbo标签,用于适配go侧客户端大写方法名 -> java侧小写方法名,只有 dubbo 协议客户端才需要使用
   	GetUser  func(ctx context.Context, req int32) (*User, error) `dubbo:"getUser"` 
   }
   ```


-- 
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-unsubscribe@dubbo.apache.org

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


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