1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00

fixed typo

This commit is contained in:
sfw 2018-07-30 21:20:16 +08:00
parent 1c42092310
commit 9c022e0ee9

View File

@ -232,7 +232,7 @@ $ protoc --go-netrpc_out=plugins=netrpc:. hello.proto
## 自动生成完整的RPC代码 ## 自动生成完整的RPC代码
在前面的例子中我们已经构了最小化的netrpcPlugin插件并且通过克隆protoc-gen-go的主程序创建了新的protoc-gen-go-netrpc的插件程序。现在开始继续完善netrpcPlugin插件最终目标是生成RPC安全接口。 在前面的例子中我们已经构了最小化的netrpcPlugin插件并且通过克隆protoc-gen-go的主程序创建了新的protoc-gen-go-netrpc的插件程序。现在开始继续完善netrpcPlugin插件最终目标是生成RPC安全接口。
首先是自定义的genImportCode方法中生成导入包的代码 首先是自定义的genImportCode方法中生成导入包的代码