# Functions
As finds the first error in err's chain that matches the type to which target points, and if so, sets the target to its value and returns true.
AssertionFailedf creates an internal error.
AssertionFailedWithDepthf creates an internal error with a stack trace collected at the specified depth.
HandleAsAssertionFailure hides an error and turns it into an assertion failure.
HandleAsAssertionFailureDepth is like HandleAsAssertionFailure but the depth at which the call stack is captured can be specified.
JoinWithDepth constructs a Join error with the provided list of errors as arguments, and wraps it in a `WithStackDepth` to capture a stacktrace alongside.
New creates an error with a simple error message.
NewAssertionErrorWithWrappedErrDepthf is like NewAssertionErrorWithWrappedErrf but the depth at which the call stack is captured can be specified.
NewAssertionErrorWithWrappedErrf wraps an error and turns it into an assertion error.
Newf creates an error with a formatted error message.
NewWithDepth is like New() except the depth to capture the stack trace is configurable.
NewWithDepthf is like Newf() except the depth to capture the stack trace is configurable.
WithMessage annotates err with a new message.
WithMessagef annotates err with the format specifier.
Wrap wraps an error with a message prefix.
Wrapf wraps an error with a formatted message prefix.
WrapWithDepth is like Wrap except the depth to capture the stack trace is configurable.
WrapWithDepthf is like Wrapf except the depth to capture the stack trace is configurable.