1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00
Files
go-micro/examples/stream/grpc/README.md

27 lines
476 B
Markdown
Raw Normal View History

# Description
This example is translate [go grpc example](https://grpc.io/docs/languages/go/basics/) into go-micro.
You can also find the orignal codes in [github.com/grpc/grpc-go](https://github.com/grpc/grpc-go/tree/master/examples/route_guide).
# Run the sample code
## Protobuf
```shell
protoc --go_out=proto --micro_out=proto proto/route_guide.proto
```
## Server
```shell
cd stream/gprc/server
go run .
```
## Client
```shell
cd stream/client
go run main.go
```