Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 773 Bytes

README-gRPC.md

File metadata and controls

51 lines (36 loc) · 773 Bytes

README gRPC

Install protoc

apt

apt install -y protobuf-compiler
protoc --version

brew

brew install protobuf
protoc --version

manual

https://github.com/protocolbuffers/protobuf/releases

Install grpc

go get -u google.golang.org/grpc

Install protoc-gen-go

go get -u google.golang.org/protobuf
go install google.golang.org/protobuf/cmd/protoc-gen-go
protoc-gen-go --version

Install protoc-gen-go-grpc

go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
protoc-gen-go-grpc --version

Build gRPC

protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative *.proto