Specifically get protoc and protoc-gen-gowq

This commit is contained in:
Asim 2016-03-06 12:03:45 +00:00
parent 52a20244d7
commit 669505be4c

View File

@ -149,7 +149,7 @@ We use a protobuf plugin for code generation. This is completely optional. Look
and [examples/client](https://github.com/micro/go-micro/blob/master/examples/client/main.go) for examples without code generation. and [examples/client](https://github.com/micro/go-micro/blob/master/examples/client/main.go) for examples without code generation.
```shell ```shell
go get github.com/micro/protobuf go get github.com/micro/protobuf/{proto,protoc-gen-go}
``` ```
Compile proto `protoc -I$GOPATH/src --go_out=plugins=micro:$GOPATH/src $GOPATH/src/github.com/micro/go-micro/examples/service/proto/greeter.proto` Compile proto `protoc -I$GOPATH/src --go_out=plugins=micro:$GOPATH/src $GOPATH/src/github.com/micro/go-micro/examples/service/proto/greeter.proto`