1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-23 20:02:22 +00:00

Merge pull request #467 from fuwensun/master

ch4-02 fix type
This commit is contained in:
chai2010 2019-10-05 21:09:39 +08:00 committed by GitHub
commit 7b59a3ceba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ func main() {
}
```
为了避免对protoc-gen-go插件造成干扰我们将我们的可执行程序命名为protoc-gen-go-netrpc表示包含了nerpc插件。然后用以下命令重新编译hello.proto文件
为了避免对protoc-gen-go插件造成干扰我们将我们的可执行程序命名为protoc-gen-go-netrpc表示包含了netrpc插件。然后用以下命令重新编译hello.proto文件
```
$ protoc --go-netrpc_out=plugins=netrpc:. hello.proto

View File

@ -194,4 +194,4 @@ $ grpcurl -plaintext -d @ localhost:1234 HelloService.HelloService/Channel
}
```
通过grpcurl工具我们可以在没有服务端代码的环境下测试gRPC服务。
通过grpcurl工具我们可以在没有客户端代码的环境下测试gRPC服务。