Documentation ¶
Overview ¶
Package helpers contains helpers to assist in other parts of the code
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanOpError ¶
CleanOpError checks whether a *net.OpError is included in the error and if so removes the included address information. This can happen in two ways: If the passed error is indeed an OpError the address info is just patched out. If the OpError is buried deeper inside the wrapped error stack, a new error with patched message is created sacrificing the wrapping and possible included stacktrace.
As of the loss of information this is only intended to clean up logging and not be used in error returns.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.