Created
February 8, 2016 03:19
-
-
Save nodirt/ff20208b7a41e4bc5b9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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