基于 protobuf 快速生成服务治理的 RPC 代码

鸟窝 at 
rpcx 是一个流行的 Go 语言实现的服务治理的框架,只要你简单会写 Go 的函数,你就能实现带服务治理的 RPC 服务,超级简单,比如下面的加法服务:12345type Arith struct {}func (a *Arith) Add(ctx context.Context, args int, reply *int) error { *reply = args + 100}但是,很多情况下,尤其在大型互联网公司中,常用 Protobuf 的 proto 文件定义数据类型(Message)和(Service),这样做有一个好处,就是方便部门和部门、服务提供者和服务使用者之间沟通,……