must_utils

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyToErr

func AnyToErr(v any) error

func DoOrLog

func DoOrLog(
	f func(ctx context.Context) error,
	errorMsg string,
) func(ctx context.Context)

func DoOrLogWithStacktrace

func DoOrLogWithStacktrace(
	f func(ctx context.Context) error,
	errorMsg string,
) func(ctx context.Context)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL