Skip to content

code4happylife/testgrpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testgrpc

Use protoc to generate chat.pb.go

 protoc --go_out=plugins=grpc:chat chat.proto

Run server.go

go run server.go

Run client.go

go run client.go

Test result

testgrpc % go run server.go
2021/12/13 09:40:56 Received message body from client:Hello from client !

 testgrpc % go run client.go
2021/12/13 09:40:56 Response from Server: Hello from the server!

About

Demonstrate how to use gRPC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages