mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 04:22:22 +00:00
fixed typo
This commit is contained in:
parent
1c42092310
commit
9c022e0ee9
@ -232,7 +232,7 @@ $ protoc --go-netrpc_out=plugins=netrpc:. hello.proto
|
||||
|
||||
## 自动生成完整的RPC代码
|
||||
|
||||
在前面的例子中我们已经构件了最小化的netrpcPlugin插件,并且通过克隆protoc-gen-go的主程序创建了新的protoc-gen-go-netrpc的插件程序。现在开始继续完善netrpcPlugin插件,最终目标是生成RPC安全接口。
|
||||
在前面的例子中我们已经构建了最小化的netrpcPlugin插件,并且通过克隆protoc-gen-go的主程序创建了新的protoc-gen-go-netrpc的插件程序。现在开始继续完善netrpcPlugin插件,最终目标是生成RPC安全接口。
|
||||
|
||||
首先是自定义的genImportCode方法中生成导入包的代码:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user