Documentation ¶
Overview ¶
Package zmain allows setting of some global state afeecting how all zerrors are wrapped or serialised. It is not meant to be imported by any normal library, those should rely on zerrors exclusively. It is recommended to imported in at most one place and for it's methods to be called at most once and exclusively during the package initialisation phase.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBasic ¶
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 ¶
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 disables all frame capturing. This may be used primarily as a performance optimisation if frame information is not desired at all.
Types ¶
This section is empty.