package
0.1.1
Repository: https://github.com/puppetlabs/leg.git
Documentation: pkg.go.dev

# Functions

Apply invokes all of the mappers that have been added to the given error and returns the resulting error.
MapAfter causes the given mapper to run just after any mappers added by calling MapBefore in an error mapping chain.
MapBefore causes the given mapper to run just before any mappers added by calling MapAfter in an error mapping chain.
MapFirst causes the given mapper to run at the very beginning of an error mapping chain.
MapLast causes the given mapper to run at the very end of an error mapping chain.
Wrap causes the given message to be prepended to the error at the end of the error mapping chain.

# Interfaces

MapApplicator allows an error to control mapping behavior.
Mapper constructs a new error from a given error.

# Type aliases

MapperFunc allows a function to be used as a Mapper.