mirror of
https://github.com/Starlio-app/StarlioX
synced 2024-11-25 09:16:21 +03:00
12 lines
186 B
Go
12 lines
186 B
Go
|
package functions
|
||
|
|
||
|
import "net/http"
|
||
|
|
||
|
var Connected = func() (ok bool) {
|
||
|
_, err := http.Get("http://clients3.google.com/generate_204")
|
||
|
if err != nil {
|
||
|
return false
|
||
|
}
|
||
|
return true
|
||
|
}
|