Merge pull request #42 from dsymonds/patch-1

Tidy up README.md.
pull/3109/head
Qi Zhao 10 years ago
commit 4008cf832f
  1. 10
      go/README.md

@ -4,7 +4,7 @@ gRPC in 3 minutes (Go)
PREREQUISITES PREREQUISITES
------------- -------------
- This requires Go 1.4.x - This requires Go 1.4
- Requires that [GOPATH is set](https://golang.org/doc/code.html#GOPATH) - Requires that [GOPATH is set](https://golang.org/doc/code.html#GOPATH)
```sh ```sh
$ go help gopath $ go help gopath
@ -42,10 +42,10 @@ OPTIONAL - Rebuilding the generated code
- This is will change once proto3 is officially released - This is will change once proto3 is officially released
2 Install the protoc Go plugin. 2 Install the protoc Go plugin.
```sh ```sh
$ go install -a github.com/golang/protobuf/protoc-gen-go $ go get -a github.com/golang/protobuf/protoc-gen-go
$ # ensure the PATH contains $GOPATH/bin or $GOBIN $ # ensure the PATH contains $GOPATH/bin
$ export PATH=PATH:<your/gopath/bin> $ export PATH=PATH:$GOPATH/bin
$ $
$ # from ths dir; invoke protoc $ # from this dir; invoke protoc
$ protoc -I ../protos ../protos/helloworld.proto --go_out=plugins=grpc:. $ protoc -I ../protos ../protos/helloworld.proto --go_out=plugins=grpc:.
``` ```

Loading…
Cancel
Save