Re: [go-nuts] Get network interface values

2022-12-05 Thread 'Axel Wagner' via golang-nuts
This isn't really something that can be solved, in Go or otherwise. The operating system only knows that a given interface is connected to a network, it doesn't know whether that network is routes to the internet. Any piece of software that actually checks of you are "connected to the internet" do

[go-nuts] Get network interface values

2022-12-05 Thread Nikhilesh Susarla
Hi, I want to check if my system is connected to internet or not. 1. Say I may be connected to wifi but there is no internet. 2. Connected in lan but there is no internet So, I want a low level package to get the status of the network card or related in Go. Rather than just querying google.com