File: README.md

package info (click to toggle)
golang-google-grpc 1.38.0%2Breally1.33.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,168 kB
  • sloc: sh: 724; makefile: 76
file content (25 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Description

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

# Run the sample code

Run the server:

```sh
$ go run ./server/main.go
```
Then run the client in another terminal:

```sh
$ go run ./client/main.go
```

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

```sh
$ go run ./client/main.go
```

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