mirror of https://github.com/grpc/grpc.io.git
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:
parent
758b2acecd
commit
9d6d806486
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue