An open API service indexing awesome lists of open source software.

https://github.com/sanzharanarbay/golang_grpc_example

Golang gRPC client and server example
https://github.com/sanzharanarbay/golang_grpc_example

go golang grpc grpc-client grpc-server protobuf protocol-buffers

Last synced: 2 months ago
JSON representation

Golang gRPC client and server example

Awesome Lists containing this project

README

          

# Goland gRPC client and server Example

- go get -u github.com/golang/protobuf/protoc-gen-go;
- go get golang.org/x/net/context@v0.0.0-20200822124328-c89045814202;
- protoc proto/chat.proto --go_out=plugins=grpc:api proto/chat.proto ;
- Simular Commands :
* protoc -I proto --go_out=plugins=grpc:chat proto/chat.proto;
* protoc --go_out=plugins=grpc:chat chat.proto;

- In Ubuntu if error about protobuf, then run sudo apt install protobuf-compiler;
- Run Server: go run main.go ;
- Run Client: go run client.go ;