MCPcopy 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
89func 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
99func onDraw(glctx gl.Context, sz size.Event) {
100 select {

Callers 1

mainFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected