1
0
mirror of https://github.com/dutchcoders/transfer.sh.git synced 2020-11-18 19:53:40 -08:00
2019-03-17 20:19:56 +01:00
..
2019-03-17 20:19:56 +01:00
2019-03-17 20:19:56 +01:00
2019-03-17 20:19:56 +01:00

Description

This example demonstrates the use of status details in grpc errors.

Run the sample code

Run the server:

$ go run ./server/main.go

Then run the client in another terminal:

$ go run ./client/main.go

It should succeed and print the greeting it received from the server. Then run the client again:

$ go run ./client/main.go

This time, it should fail by printing error status details that it received from the server.