compose

package
v0.0.0-...-a491dda Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCompose Error that happen while Compose typechecks the stages and the function pointer
	ErrCompose = fmt.Errorf("compose: ")
)

Functions

func Compose

func Compose(out interface{}, stages ...interface{}) (err error)

Compose build a function out that is the composition of the stages function like a pipeline, out must be a pointer to a empty function created using the var declaration, errors do early returns and are not passed to the next stage. The previous stage must return the input of the current stage. Any inconsistency will return a error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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