grpc-go/examples
Eric Butler ebc30b8fc3
reflection: use protobuf/reflect instead of go reflection, fix dynamic messages (#5180)
2022-02-15 11:01:42 -08:00
..
data testdata: Update testdata certs. (#3786) 2020-08-05 09:55:07 -07:00
features cleanup: replace grpc.WithInsecure with insecure.NewCredentials (#5177) 2022-02-09 11:17:46 -08:00
helloworld Let helloworld example listen to all hosts (#5089) 2022-01-24 15:38:04 -08:00
route_guide Format directory/file references (#5184) 2022-02-09 11:29:47 -08: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 reflection: use protobuf/reflect instead of go reflection, fix dynamic messages (#5180) 2022-02-15 11:01:42 -08:00
go.sum reflection: use protobuf/reflect instead of go reflection, fix dynamic messages (#5180) 2022-02-15 11:01:42 -08: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.