Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
Converter is a reusable object that knows how to convert a collection of items (from a map or slice) into a final wrapped structure.
func NewConverter ¶
func NewConverter[I any, W any]( namer func(name string, item I) (I, bool), wrap func(items []I) W, ) *Converter[I, W]
NewConverter creates a new, reusable converter. The namer and wrap functions are defined only once.
Click to show internal directories.
Click to hide internal directories.