package
0.0.0-20241116165817-883d5d7d379c
Repository: https://github.com/ddkwork/toolbox.git
Documentation: pkg.go.dev

# Functions

Append one or more errors to an existing error.
Log an error with a stack trace.
LogAttrs logs an error with a stack trace.
LogAttrsContext logs an error with a stack trace.
LogAttrsContextTo logs an error with a stack trace.
LogAttrsTo logs an error with a stack trace.
LogAttrsWithLevel logs an error with a stack trace.
LogContext logs an error with a stack trace.
LogContextTo logs an error with a stack trace.
LogTo logs an error with a stack trace.
LogWithLevel logs an error with a stack trace.
New creates a new detailed error with the 'message'.
Newf creates a new detailed error using fmt.Sprintf() to format the message.
NewWithCause creates a new detailed error with the 'message' and underlying 'cause'.
NewWithCausef creates a new detailed error with an underlying 'cause' and using fmt.Sprintf() to format the message.
Recovery provides an easy way to run code that may panic.
Wrap an error and turn it into a detailed error.
WrapTyped wraps an error and turns it into a detailed error.

# Constants

StackTraceKey is the key used for logging the stack trace.

# Structs

Error holds the detailed error message.

# Interfaces

ErrorWrapper contains methods for interacting with the wrapped errors.
StackError contains methods with the stack trace and message.

# Type aliases

RecoveryHandler defines the callback used when panics occur with Recovery.