Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Unified Diff: examples/go/echo_client.go

Issue 1105443002: go: update go build rules (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/go/README.txt ('k') | examples/go/echo_server.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/go/echo_client.go
diff --git a/examples/go/echo_client.go b/examples/go/echo_client.go
index e476a97a677da7b74d14c8fb3858c06835309f87..dfa45a2fdb87e84f29fd28b098e46dc3bdb0b391 100644
--- a/examples/go/echo_client.go
+++ b/examples/go/echo_client.go
@@ -26,11 +26,11 @@ type EchoClientDelegate struct {
func (delegate *EchoClientDelegate) Initialize(ctx application.Context) {
echoRequest, echoPointer := echo.CreateMessagePipeForEcho()
- ctx.ConnectToApplication("mojo:echo_server").ConnectToService(&echoRequest)
+ ctx.ConnectToApplication("mojo:go_echo_server").ConnectToService(&echoRequest)
delegate.echo = echo.NewEchoProxy(echoPointer, bindings.GetAsyncWaiter())
response, err := delegate.echo.EchoString(bindings.StringPointer("Hello, Go world!"))
if response != nil {
- fmt.Println(*response)
+ fmt.Printf("client: %s\n", *response)
} else {
log.Println(err)
}
« no previous file with comments | « examples/go/README.txt ('k') | examples/go/echo_server.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698