diff --git a/grpc/README.md b/grpc/README.md index 22632ef..2d496d4 100644 --- a/grpc/README.md +++ b/grpc/README.md @@ -10,19 +10,20 @@ See [API documentation](..\docs\apis.md) ##### Installling tools -Download the [Protocol Buffers compiler](https://github.com/protocolbuffers/protobuf/releases) (protoc-3.15.0-*) for your platform and add `protoc` to `PATH` environment variable +Download the [Protocol Buffers compiler](https://github.com/protocolbuffers/protobuf/releases) (protoc-3.17.3-*)+ for +your platform and add `protoc` to `PATH` environment variable -For generating Go code, install `protoc-gen-go` (v1.4.3): +For generating Go code, install `protoc-gen-go` (v1.27.1+): ```bash -GIT_TAG="v1.4.3" +GIT_TAG="v1.27.1" go get -d -u google.golang.org/protobuf/cmd/protoc-gen-go git -C "$(go env GOPATH)"/src/google.golang.org/protobuf checkout $GIT_TAG go install google.golang.org/protobuf/cmd/protoc-gen-go ``` -Also install `protoc-gen-go-grpc`: +Also install `protoc-gen-go-grpc` v1.1.0+: ```bash -go get -u google.golang.org/protobuf/cmd/protoc-gen-go +go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc ``` Or install using [gobin](https://github.com/myitcv/gobin):