errs

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package errs contains functions to interact with errors.

The package is imported like this:

import "github.com/gouniverse/base/errs"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fails

func Fails(errFuncs ...errFunc) bool

func Pass

func Pass(errFuncs ...errFunc) bool

func Validate

func Validate(errFuncs ...errFunc) error

func ValidateAndGet

func ValidateAndGet[T any](valueOrErrorFuncs ...valueOrErrorFunc[T]) (T, error)

func ValueOrError

func ValueOrError[T any](valueOrErrorFuncs ...valueOrErrorFunc[T]) (T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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