func GetDefaultRoute() (net.IP, string, error) {
	// TODO(wpk) 2017-11-20 Add Windows support here, hence the switch.
	switch goos() {
	case "linux":
		return getDefaultRouteLinux()
	default:
		return nil, "", nil
	}
}
// GetDefaultRoute returns the IP address and device name of default gateway on the machine.
// If we don't support OS, or we don't have a default route, we return nothing (not an error!).
GetDefaultRoute returns the IP address and device name of default gateway on the machine.
If we don't support OS, or we don't have a default route, we return nothing (not an error!).
// GetDefaultRoute returns the IP address and device name of default gateway on the machine . // If we don ' t support OS or we don ' t have a default route we return nothing ( not an error! ) .
func GetDefaultRoute() (net.IP, string, error) {
	switch goos() {
	case "linux":
		return getDefaultRouteLinux()
	default:
		return nil, "", nil
	}
}
func GetDefaultRoute ( ) ( net . IP , string , error ) { switch goos ( ) { case " " : return getDefaultRouteLinux ( ) default : return nil , " " , nil } }
GetDefaultRoute returns the IP address and device name of default gateway on the machine.
GetDefaultRoute returns the IP address and device name of default gateway on the machine .
// TODO(wpk) 2017-11-20 Add Windows support here, hence the switch.