tree: cf33286068d67e218cc295b0ba48c51b75547d7f [path history] [tgz]
  1. data/
  2. features/
  3. helloworld/
  4. route_guide/
  5. examples_test.sh
  6. go.mod
  7. go.sum
  8. gotutorial.md
  9. README.md
examples/README.md

gRPC Hello World

Follow these setup to run the quick start example:

  1. Get the code:

    $ go get google.golang.org/grpc/examples/helloworld/greeter_client
    $ go get google.golang.org/grpc/examples/helloworld/greeter_server
    
  2. Run the server:

    $ $(go env GOPATH)/bin/greeter_server &
    
  3. 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.