errors/

directory
v1.29.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2020 License: Apache-2.0

README

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.

Directories

Path Synopsis
Binary client is an example client.
Binary client is an example client.
Binary server is an example server.
Binary server is an example server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL