grpc-go/examples
Easwar Swaminathan 22608213b8
go.mod: upgrade golang.org/x/net to address CVE-2022-41723 (#6106)
2023-03-09 16:30:30 -08:00
..
data examples: regenerate certs to use SHA256 signing algorithm (#5256) 2022-03-21 10:41:21 -07:00
features examples/authz: add token package docstring (#6095) 2023-03-07 14:50:03 -08:00
helloworld cmd/protoc-gen-go-grpc: bump -version to 1.3.0 for release (#6064) 2023-03-01 09:58:20 -08:00
route_guide cmd/protoc-gen-go-grpc: bump -version to 1.3.0 for release (#6064) 2023-03-01 09:58:20 -08:00
README.md examples: cleanup README.md (#3738) 2020-07-14 16:59:29 -07:00
examples_test.sh examples: add an example to illustrate authorization (authz) support (#5920) 2023-03-02 09:17:20 -08:00
go.mod go.mod: upgrade golang.org/x/net to address CVE-2022-41723 (#6106) 2023-03-09 16:30:30 -08:00
go.sum go.mod: upgrade golang.org/x/net to address CVE-2022-41723 (#6106) 2023-03-09 16:30:30 -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.