netdiag

package
v1.60.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package netdiag decorates network errors with platform-specific hints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Explain

func Explain(err error) error

Explain wraps err with a remediation hint when the failure matches a known platform quirk. It currently detects macOS's Local Network privacy denial: when the app (or the terminal it runs in) lacks the Local Network permission, connections to LAN addresses fail with EHOSTUNREACH without any packet being sent, which is indistinguishable from a routing problem. All other errors are returned unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL