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 ¶
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.
Click to show internal directories.
Click to hide internal directories.