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
- Host: GitHub
- URL: https://github.com/sanzharanarbay/golang_grpc_example
- Owner: sanzharanarbay
- License: mit
- Created: 2022-04-06T06:59:46.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-12T10:04:16.000Z (over 3 years ago)
- Last Synced: 2025-10-07T03:35:09.829Z (9 months ago)
- Topics: go, golang, grpc, grpc-client, grpc-server, protobuf, protocol-buffers
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadME.md
- License: LICENSE.md
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 ;