docs: update tool versions in README.md

This commit is contained in:
Nex Zhu 2021-07-14 17:33:28 +08:00
parent 7caa7a9e9a
commit a0aa79ba13
No known key found for this signature in database
GPG Key ID: 15C6254AD19362B4

View File

@ -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):