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

Side by Side Diff: examples/go/echo_client.go

Issue 1276653003: Update version of Go to 1.5 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: go.mobile no longer needed Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | examples/go/echo_server.go » ('j') | examples/go/echo_server.go » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package main 5 package main
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 "log" 9 "log"
10 10
11 "golang.org/x/mobile/app"
12
13 "mojo/public/go/application" 11 "mojo/public/go/application"
14 "mojo/public/go/bindings" 12 "mojo/public/go/bindings"
15 "mojo/public/go/system" 13 "mojo/public/go/system"
16 14
17 "examples/echo/echo" 15 "examples/echo/echo"
18 ) 16 )
19 17
20 //#include "mojo/public/c/system/types.h" 18 //#include "mojo/public/c/system/types.h"
21 import "C" 19 import "C"
22 20
(...skipping 20 matching lines...) Expand all
43 func (delegate *EchoClientDelegate) Quit() { 41 func (delegate *EchoClientDelegate) Quit() {
44 } 42 }
45 43
46 //export MojoMain 44 //export MojoMain
47 func MojoMain(handle C.MojoHandle) C.MojoResult { 45 func MojoMain(handle C.MojoHandle) C.MojoResult {
48 application.Run(&EchoClientDelegate{}, system.MojoHandle(handle)) 46 application.Run(&EchoClientDelegate{}, system.MojoHandle(handle))
49 return C.MOJO_RESULT_OK 47 return C.MOJO_RESULT_OK
50 } 48 }
51 49
52 func main() { 50 func main() {
53 app.Run(app.Callbacks{})
54 } 51 }
OLDNEW
« no previous file with comments | « no previous file | examples/go/echo_server.go » ('j') | examples/go/echo_server.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698