zmain

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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

func SetBasic(f func(error) string)

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

func SetDetail(f func(error) string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL