Go quick start: use go install (#708)

* add plugins install method go1.16

Related Issues #682

* fix text

* remove blank

* Drop patch numbers

Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
This commit is contained in:
mori yuta 2021-05-11 05:32:46 +09:00 committed by GitHub
parent 758b2acecd
commit 9d6d806486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -21,9 +21,8 @@ spelling: cSpell:ignore Fatalf GOPATH
1. Install the protocol compiler plugins for Go using the following commands:
```sh
$ export GO111MODULE=on # Enable module mode
$ go get google.golang.org/protobuf/cmd/protoc-gen-go \
google.golang.org/grpc/cmd/protoc-gen-go-grpc
$ go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1
```
2. Update your `PATH` so that the `protoc` compiler can find the plugins: