# grpc-demo **Repository Path**: samperson/grpc-demo ## Basic Information - **Project Name**: grpc-demo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-11 - **Last Updated**: 2021-03-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # grpc-demo windows下编译和生成proto文件 protoc --plugin=protoc-gen-go=E:/go-work/bin/protoc-gen-go.exe --go_out=plugins=grpc:. ./proto/helloworld.proto 1、安装protoc-gen-go插件 go get -u github.com/golang/protobuf/protoc-gen-go@v1.3.3 2、安装gRPC库 go get -u google.golang.org/grpc 3、安装调试gRPC go get -u github.com/fullstorydev/grpcurl 4、安装同端口的多路复用 go get -u github.com/soheilhy/cmux 5、安装grpc-gateway双流量支持 go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway