jason 075d766964 first | %!s(int64=3) %!d(string=hai) anos | |
---|---|---|
.. | ||
client | %!s(int64=3) %!d(string=hai) anos | |
server | %!s(int64=3) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos |
A grpc.ClientConn
can be shared by two stubs and two services can share a
grpc.Server
. This example illustrates how to perform both types of sharing.
go run server/main.go
go run client/main.go