Documentation ¶ Index ¶ func AnyToErr(v any) error func Must[T any](obj T, err error) T func MustNoReturn(err error) func MustOk[T any](obj T, ok bool) T func WithRecover(f func(ctx context.Context) error) func(ctx context.Context) error func WithRecoverAndLog(f func(ctx context.Context) error) func(ctx context.Context) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AnyToErr ¶ func AnyToErr(v any) error func Must ¶ func Must[T any](obj T, err error) T func MustNoReturn ¶ func MustNoReturn(err error) func MustOk ¶ added in v0.2.14 func MustOk[T any](obj T, ok bool) T func WithRecover ¶ added in v0.3.4 func WithRecover(f func(ctx context.Context) error) func(ctx context.Context) error func WithRecoverAndLog ¶ added in v0.3.4 func WithRecoverAndLog(f func(ctx context.Context) error) func(ctx context.Context) WithRecoverAndLog Decorates function with panic recovering and log for errors. Types ¶ This section is empty. Source Files ¶ View all Source files do_or_log.gomust.gopanic_to_error.go Click to show internal directories. Click to hide internal directories.