Helpers

package
v0.2.31 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterOut

func FilterOut[T any](batch []HResult[T])

Types

type HResult

type HResult[T any] struct {
	Result T
	Reason error
}

func EvaluateFunc

func EvaluateFunc[T any](f func() (T, error)) HResult[T]

func EvaluateMany

func EvaluateMany[T any](f func() ([]T, error)) []HResult[T]

func NewHResult

func NewHResult[T any](result T, reason error) HResult[T]

Jump to

Keyboard shortcuts

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