add grpc example (#1401)

use grpc helloworld example.
This commit is contained in:
田欧
2018-06-22 09:51:06 +08:00
committed by Bo-Yi Wu
parent bf85b32c1d
commit 737d2fb7ab
7 changed files with 290 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
## How to run this example
1. run grpc server
```sh
$ go run grpc/server.go
```
2. run gin server
```sh
$ go run gin/main.go
```
3. use curl command to test it
```sh
$ curl -v 'http://localhost:8052/rest/n/thinkerou'
```