https://godoc.org/google.golang.org/grpc

go get google.golang.org/grpc

 

go get -a github.com/golang/protobuf/protoc-gen-go

protoc --go_out=plugins=grpc:. helloworld.proto

----------------------------------------------------------------------

安装gogoprotobuf:
     1 go get github.com/gogo/protobuf/proto
     2 go get github.com/gogo/protobuf/protoc-gen-gogo
     3 go get github.com/gogo/protobuf/gogoproto
     4 go get github.com/gogo/protobuf/protoc-gen-gofast