mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
event: rename event.Foo to foo.Event.
Fixes golang/go#10444 Change-Id: Ie5a8ab8a09b1b1a4f7037da7cf945d39ab6a98fc Reviewed-on: https://go-review.googlesource.com/12225 Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
@@ -41,7 +41,7 @@ import (
|
||||
"net/http"
|
||||
|
||||
"golang.org/x/mobile/app"
|
||||
"golang.org/x/mobile/event"
|
||||
"golang.org/x/mobile/event/config"
|
||||
"golang.org/x/mobile/exp/app/debug"
|
||||
"golang.org/x/mobile/gl"
|
||||
)
|
||||
@@ -51,7 +51,7 @@ func main() {
|
||||
go checkNetwork()
|
||||
|
||||
app.Run(app.Callbacks{
|
||||
Draw: draw,
|
||||
Draw: onDraw,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ func checkNetwork() {
|
||||
ok = true
|
||||
}
|
||||
|
||||
func draw(c event.Config) {
|
||||
func onDraw(c config.Event) {
|
||||
select {
|
||||
case <-determined:
|
||||
if ok {
|
||||
|
||||
Reference in New Issue
Block a user