This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
README.md
主要平时学习 go 语言的 Grpc
simple 简单例子
client 客户端
server 服务端
test_proto 编解码 protobuf 例子
安装步骤
一、安装 protobuf (protoc)
主要用于编写好的 protobuf 文件,生成于 go 文件
命令(在protobuf文件的目录):
protoc --go_out=plugins=grpc:. xxx.proto
二、安装 protoc-gen-go
go get github.com/golang/protobuf
go get github.com/golang/protobuf/protoc-gen-go
三、安装 grpc-go (已经打包在 vendor 中了)
有三个依赖和本身也被墙了,可以采用手动下载,Github 有。
下载后将目录改 GO 的目录规则

然后没了
Comments ( 0 )