grpc-go/examples/helloworld
Easwar Swaminathan 415ccdf154
go.mod: update all dependencies after 1.54 branch cut (#6132)
2023-03-28 16:03:41 -07:00
..
greeter_client use insecure.NewCredentials() instead of grpc.WithInsecure (#5087) 2022-01-12 14:19:03 -05:00
greeter_server Let helloworld example listen to all hosts (#5089) 2022-01-24 15:38:04 -08:00
helloworld go.mod: update all dependencies after 1.54 branch cut (#6132) 2023-03-28 16:03:41 -07:00
README.md examples: organize READMEs better (#6121) 2023-03-21 13:19:15 -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.