Documentation ¶
Index ¶
- Constants
- 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 Must2[A, B any](a A, b B, err error) (A, B)
- func Must3[A, B, C any](a A, b B, c C, err error) (A, B, C)
- func Must4[A, B, C, D any](a A, b B, c C, d D, err error) (A, B, C, D)
- func Must5[A, B, C, D, E any](a A, b B, c C, d D, e E, err error) (A, B, C, D, E)
- func Must6[A, B, C, D, E, F any](a A, b B, c C, d D, e E, f F, err error) (A, B, C, D, E, F)
- func Must7[A, B, C, D, E, F, G any](a A, b B, c C, d D, e E, f F, g G, err error) (A, B, C, D, E, F, G)
- func Must8[A, B, C, D, E, F, G, H any](a A, b B, c C, d D, e E, f F, g G, h H, err error) (A, B, C, D, E, F, G, H)
- func MustZ(err error)
- func New(msg string) error
- func Newf(format string, args ...any) error
- func Skip[T any](v T, _ error) T
- func Skip2[A, B any](a A, b B, _ error) (A, B)
- func Skip3[A, B, C any](a A, b B, c C, _ error) (A, B, C)
- func Skip4[A, B, C, D any](a A, b B, c C, d D, _ error) (A, B, C, D)
- func Skip5[A, B, C, D, E any](a A, b B, c C, d D, e E, _ error) (A, B, C, D, E)
- func Skip6[A, B, C, D, E, F any](a A, b B, c C, d D, e E, f F, _ error) (A, B, C, D, E, F)
- func Skip7[A, B, C, D, E, F, G any](a A, b B, c C, d D, e E, f F, g G, _ error) (A, B, C, D, E, F, G)
- func Skip8[A, B, C, D, E, F, G, H any](a A, b B, c C, d D, e E, f F, g G, h H, _ error) (A, B, C, D, E, F, G, H)
- func SkipZ(_ 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 ¶
View Source
const ZzVersion = `0.0.7`
internal usage
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
func CallersSkip ¶
Click to show internal directories.
Click to hide internal directories.