Index
- func Ignore[T any](val T, err error) T
- func IgnoreRuntime(val any, err error) any
- func Must[T any](val T, err error) T
- func MustRuntime(val any, err error) any
func Ignore
go
func Ignore[T any](val T, err error) T
Ignore is a helper that wraps a call to a function returning value and error and ignores if the error is non-nil.
func IgnoreRuntime
go
func IgnoreRuntime(val any, err error) any
IgnoreRuntime is a runtime version of errorsx.Ignore().
func Must
go
func Must[T any](val T, err error) T
Must is a helper that wraps a call to a function returning value and error and panics if the error is non-nil.
func MustRuntime
go
func MustRuntime(val any, err error) any
MustRuntime is a runtime version of errorsx.Must().
Generated by gomarkdoc