Skip to content

Instantly share code, notes, and snippets.

@nodirt
Created February 8, 2016 03:19
Show Gist options
  • Save nodirt/ff20208b7a41e4bc5b9a to your computer and use it in GitHub Desktop.
Save nodirt/ff20208b7a41e4bc5b9a to your computer and use it in GitHub Desktop.
client := &prpc.Client{Host: "prpc-helloworld.appspot.com"}
greeter := helloworld.NewGreeterPRPCClient(client)
ctx := context.Background()
res, err := greeter.SayHello(ctx, &helloworld.HelloRequest{
Name: "nodir",
})
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
fmt.Println(res.Message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment