debian-mirror-gitlab/workhorse-vendor/google.golang.org/grpc/examples
2022-12-03 16:09:56 +05:30
..
data New upstream version 15.5.4+ds2 2022-12-03 16:09:56 +05:30
features New upstream version 15.5.4+ds2 2022-12-03 16:09:56 +05:30
helloworld New upstream version 15.5.4+ds2 2022-12-03 16:09:56 +05:30
route_guide New upstream version 15.5.4+ds2 2022-12-03 16:09:56 +05:30
examples_test.sh New upstream version 15.5.4+ds2 2022-12-03 16:09:56 +05:30
go.mod New upstream version 15.5.4+ds2 2022-12-03 16:09:56 +05:30
go.sum New upstream version 15.5.4+ds2 2022-12-03 16:09:56 +05:30
gotutorial.md New upstream version 15.5.4+ds2 2022-12-03 16:09:56 +05:30
README.md New upstream version 15.5.4+ds2 2022-12-03 16:09:56 +05:30

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.