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

Side by Side Diff: mojo/go/sample_app/app.go

Issue 681393002: -Build configuration for a sample Go application that can be run in Mojo (on Android). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tabs Created 6 years, 1 month 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 | « mojo/go/sample_app/README.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 package main 1 package main
2 2
3 import ( 3 import (
4 "log"
5
4 "code.google.com/p/go.mobile/app" 6 "code.google.com/p/go.mobile/app"
5 » "log" 7 » "mojo/public/go/system/impl"
6 » "mojo/public/go/system"
7 ) 8 )
8 9
9 //#include "mojo/public/c/system/types.h" 10 //#include "mojo/public/c/system/types.h"
10 import "C" 11 import "C"
11 12
12 //export MojoMain 13 //export MojoMain
13 func MojoMain(handle C.MojoHandle) C.MojoResult { 14 func MojoMain(handle C.MojoHandle) C.MojoResult {
14 » if core := system.GetCore(); core != nil { 15 » if core := impl.GetCore(); core != nil {
15 log.Printf("GetTimeTicksNow:%v", core.GetTimeTicksNow()) 16 log.Printf("GetTimeTicksNow:%v", core.GetTimeTicksNow())
16 } 17 }
17 return C.MOJO_RESULT_OK 18 return C.MOJO_RESULT_OK
18 } 19 }
19 20
20 func main() { 21 func main() {
21 app.Run(app.Callbacks{}) 22 app.Run(app.Callbacks{})
22 } 23 }
OLDNEW
« no previous file with comments | « mojo/go/sample_app/README.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698