Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/golang/mobile
/ checkNetwork
Function
checkNetwork
example/network/main.go:89–97 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
87
)
88
89
func
checkNetwork() {
90
defer
close(determined)
91
92
_, err := http.Get(
"http://golang.org/"
)
93
if
err != nil {
94
return
95
}
96
ok = true
97
}
98
99
func
onDraw(glctx gl.Context, sz size.Event) {
100
select
{
Callers
1
main
Function · 0.85
Calls
1
Get
Method · 0.45
Tested by
no test coverage detected