Skip to content

linhlc888/grpc-protobuf-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This example will get two numbers from client and returns greatest common divisor of that numbers.

#How to run

  1. Generate go code from proto file
cd pb
protoc -I . --go_out=plugins=grpc:. ./*.proto
  1. Run server
go run server.go
  1. Run client on other terminal
go run client.go 12 10

About

Simplest example about how to use grpc and protobuf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages