docs: update protoc-gen-go
This commit is contained in:
parent
b182e369c6
commit
497aeb1216
@ -12,9 +12,9 @@ See [API documentation](..\docs\apis.md)
|
|||||||
|
|
||||||
Download the [Protocol Buffers compiler](https://github.com/protocolbuffers/protobuf/releases) (protoc-3.13.0-*) for your platform and add `protoc` to `PATH` environment variable
|
Download the [Protocol Buffers compiler](https://github.com/protocolbuffers/protobuf/releases) (protoc-3.13.0-*) for your platform and add `protoc` to `PATH` environment variable
|
||||||
|
|
||||||
For generating Go code, install `protoc-gen-go` (v1.32.0):
|
For generating Go code, install `protoc-gen-go` (v1.4.3):
|
||||||
```bash
|
```bash
|
||||||
GIT_TAG="v1.32.0"
|
GIT_TAG="v1.4.3"
|
||||||
go get -d -u google.golang.org/protobuf/cmd/protoc-gen-go
|
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
|
git -C "$(go env GOPATH)"/src/google.golang.org/protobuf checkout $GIT_TAG
|
||||||
go install google.golang.org/protobuf/cmd/protoc-gen-go
|
go install google.golang.org/protobuf/cmd/protoc-gen-go
|
||||||
|
Loading…
Reference in New Issue
Block a user