Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Prepend ¶
func Prepend[T any](previous func(next T) T, chain ...func(next T) T) func(next T) T
Prepend returns a hook function that first runs the given previous hook and then runs the remaining hooks in the chain. When executed, previous hook will be the first one to process the value, despite being appended to the end of the slice internally (since hooks are executed in reverse order).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.