grpc-go/examples
Jan Lamecki 54521b22e0
client: remove trailing null from unix abstract socket address (#5678)
2022-09-30 09:34:05 -07:00
..
data examples: regenerate certs to use SHA256 signing algorithm (#5256) 2022-03-21 10:41:21 -07:00
features client: remove trailing null from unix abstract socket address (#5678) 2022-09-30 09:34:05 -07:00
helloworld Grab comment from proto file, similar to protoc-gen-go (#5540) 2022-09-06 12:35:40 -07:00
route_guide Grab comment from proto file, similar to protoc-gen-go (#5540) 2022-09-06 12:35:40 -07:00
README.md examples: cleanup README.md (#3738) 2020-07-14 16:59:29 -07:00
examples_test.sh examples: remove usage of WithBlock in examples (#4858) 2021-11-01 11:06:39 -07:00
go.mod xds: ignore routes with unsupported cluster specifiers (#5269) 2022-03-31 11:02:26 -07:00
go.sum xds: ignore routes with unsupported cluster specifiers (#5269) 2022-03-31 11:02:26 -07:00
gotutorial.md cmd/protoc-gen-go-grpc: revert to interface-based service registration (#3911) 2020-09-29 15:17:06 -07:00

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.