Documentation ¶
Index ¶
- func Append(err0 error, errs ...error) error
- func AppendTo(pErr *error, errs ...error)
- func AppendTof(pErr *error, err error, msg string, args ...any)
- func Appendf(err0 error, err error, msg string, args ...any) error
- func Error(msg string) error
- func Errorf(format string, args ...any) error
- func GetErrors(err error) []error
- func Must[T any](v T, err error) T
- func MustZ(err error)
- func New(msg string) error
- func Newf(format string, args ...any) error
- func ValidateX[T any](pErr *error, value T, condition bool, msg string, args ...any) (out T)
- func Validatef(pErr *error, condition bool, msg string, args ...any)
- func Wrap(err error, msg string) error
- func Wrapf(err error, format string, args ...any) error
- type Errors
- type Option
- func (opt Option) Append(pErr *error, errs ...error)
- func (opt Option) Appendf(pErr *error, err error, msgArgs ...any)
- func (opt Option) Error(msg string) error
- func (opt Option) Errorf(format string, args ...any) error
- func (opt Option) New(msg string) error
- func (opt Option) Newf(format string, args ...any) error
- func (opt Option) Wrap(err error, msg string) error
- func (opt Option) Wrapf(err error, format string, args ...any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
func CallersSkip ¶
Click to show internal directories.
Click to hide internal directories.