chain

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanErr added in v1.0.23

func CanErr[T any](fn func(T) (T, error)) *chainer[T]

func Then added in v1.0.23

func Then[T any](fn func(T) T) *chainer[T]

Types

type ChainItem added in v1.0.23

type ChainItem[T any] struct {
	Result T
	Err    error
}

Jump to

Keyboard shortcuts

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