utilgo.mau.fi/util/exerrors Index | Files

package exerrors

import "go.mau.fi/util/exerrors"

Index

Functions

func Must

func Must[T any](val T, err error) T

func Must2

func Must2[T any, T2 any](val T, val2 T2, err error) (T, T2)

func PanicIfNotNil

func PanicIfNotNil(err error)

Types

type DualError

type DualError struct {
	High error
	Low  error
}

func NewDualError

func NewDualError(high, low error) DualError

func (DualError) Error

func (err DualError) Error() string

func (DualError) Is

func (err DualError) Is(other error) bool

func (DualError) Unwrap

func (err DualError) Unwrap() error

Source Files

dualerror.go must.go

Version
v0.8.6 (latest)
Published
Mar 16, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
1 week ago

Tools for package owners.