Documentation ¶
Overview ¶
Package neterrors provides adapters for errors generated by the standard net package.
Importing this package installs the net errors adapters on the global set of adapters of the parent errors-go package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Adapt ¶
Adapt checks the type of err and if it matches one of the error types or one of the error values of the standard net package, adapts it to make error types discoverable using the errors.Is function.
This function is automatically installed as a global adapter when importing the neterrors package, a program likely should use errors.Adapt instead of calling this adapter directly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.