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.
Click to show internal directories.
Click to hide internal directories.