mirror of https://github.com/gin-gonic/gin.git
20 lines
227 B
Markdown
20 lines
227 B
Markdown
|
## 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'
|
||
|
```
|