grpc-go/examples
Easwar Swaminathan 397adad6a0
update go.mod and go.sum to point to latest go-control-plane (#4425)
2021-05-12 15:52:15 -07:00
..
data testdata: Update testdata certs. (#3786) 2020-08-05 09:55:07 -07:00
features cmd/protoc-gen-go-grpc: add protoc and protoc-gen-go-grpc versions to top comment (#4313) 2021-04-09 16:30:59 -07:00
helloworld cmd/protoc-gen-go-grpc: add protoc and protoc-gen-go-grpc versions to top comment (#4313) 2021-04-09 16:30:59 -07:00
route_guide cmd/protoc-gen-go-grpc: add protoc and protoc-gen-go-grpc versions to top comment (#4313) 2021-04-09 16:30:59 -07:00
README.md examples: cleanup README.md (#3738) 2020-07-14 16:59:29 -07:00
examples_test.sh protobuf: update all generated code to google.golang.org/protobuf (#3932) 2020-10-21 16:05:44 -07:00
go.mod update go.mod and go.sum to point to latest go-control-plane (#4425) 2021-05-12 15:52:15 -07:00
go.sum update go.mod and go.sum to point to latest go-control-plane (#4425) 2021-05-12 15:52:15 -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.