50c071e9b5 | ||
---|---|---|
.. | ||
data | ||
features | ||
helloworld | ||
route_guide | ||
README.md | ||
examples_test.sh | ||
go.mod | ||
go.sum | ||
gotutorial.md |
README.md
gRPC Hello World
Follow these setup to run the quick start example:
-
Get the code:
$ go get google.golang.org/grpc/examples/helloworld/greeter_client $ go get google.golang.org/grpc/examples/helloworld/greeter_server
-
Run the server:
$ $(go env GOPATH)/bin/greeter_server &
-
Run the client:
$ $(go env GOPATH)/bin/greeter_client Greeting: Hello world
For more details (including instructions for making a small change to the example code) or if you're having trouble running this example, see Quick Start.