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

Side by Side Diff: examples/go/http_server.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
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 "net" 10 "net"
11 "net/http" 11 "net/http"
12 "time" 12 "time"
13 13
14 "golang.org/x/mobile/app"
15
16 "mojo/public/go/application" 14 "mojo/public/go/application"
17 "mojo/public/go/bindings" 15 "mojo/public/go/bindings"
18 "mojo/public/go/system" 16 "mojo/public/go/system"
19 17
20 "mojo/services/network/public/interfaces/net_address" 18 "mojo/services/network/public/interfaces/net_address"
21 "mojo/services/network/public/interfaces/network_service" 19 "mojo/services/network/public/interfaces/network_service"
22 "mojo/services/network/public/interfaces/tcp_bound_socket" 20 "mojo/services/network/public/interfaces/tcp_bound_socket"
23 "mojo/services/network/public/interfaces/tcp_connected_socket" 21 "mojo/services/network/public/interfaces/tcp_connected_socket"
24 "mojo/services/network/public/interfaces/tcp_server_socket" 22 "mojo/services/network/public/interfaces/tcp_server_socket"
25 ) 23 )
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 d.serverSocket.Close_Proxy() 234 d.serverSocket.Close_Proxy()
237 } 235 }
238 236
239 //export MojoMain 237 //export MojoMain
240 func MojoMain(handle C.MojoHandle) C.MojoResult { 238 func MojoMain(handle C.MojoHandle) C.MojoResult {
241 application.Run(&HttpServerDelegate{}, system.MojoHandle(handle)) 239 application.Run(&HttpServerDelegate{}, system.MojoHandle(handle))
242 return C.MOJO_RESULT_OK 240 return C.MOJO_RESULT_OK
243 } 241 }
244 242
245 func main() { 243 func main() {
246 app.Run(app.Callbacks{})
247 } 244 }
OLDNEW
« examples/go/echo_server.go ('K') | « examples/go/http_handler.go ('k') | mojo/go/go.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698