Documentation ¶
Overview ¶
Package internal contains stateful global variables internal to zerrors. This package owes its existence to the separation of zerror's functionality into two packages (zerrors & zmain), which requires for the two to have some internal common package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Basic ¶ added in v0.2.0
Basic serialises an error using the basic encoder function. It is used to produce `Error() string` for zerrors.
func Detail ¶ added in v0.2.0
Detail serialises an error using the detail encoder function. It is used to produce `zerrors.Detail(error) string`.
func SetBasic ¶ added in v0.2.0
SetBasic modifies how the `Error() string` method serialises zerrors. Note this should not rely on the `Error()` method of zerrors or it may enter an infinite recursion.
func SetDetail ¶ added in v0.2.0
SetDetail modifies how the `zerrors.Detail(error) string` method serialises zerrors. Note this should not rely on the `Detail(error)` function of zerrors or it may enter an infinite recursion.
func UnsetFrameCapture ¶
func UnsetFrameCapture()
UnsetFrameCapture is only used in zmain, and in testing.
Types ¶
This section is empty.