Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FastForward ¶
FastForward applies all Fn methods to the given chain.
Types ¶
type Immutable ¶
type Immutable interface {
// Prev returns the previous element in the chain.
Prev() Immutable
// Fn is a function that is able to modify the passed element.
Fn(interface{}) error
// Base returns the first element in the chain.
Base() interface{}
}
Immutable represents an immutable chain that, if passed to FastForward, Fn() is applied to every element in the chain. The first element of this chain is represented by Base().
Click to show internal directories.
Click to hide internal directories.