Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericOutputter ¶
type GenericOutputter[T interface{}] struct {
// contains filtered or unexported fields
}
GenericOutputter is a structure that defines a generic transformer and a generic callback.
func NewGenericOutputter ¶
func NewGenericOutputter[T interface{}]( genericSplitter func(*tzap.Tzap) []T, genericCallback func(int, *tzap.Tzap, T) *tzap.Tzap, ) GenericOutputter[T]
NewGenericOutputter creates a new GenericOutputter with the provided parameters.
func (GenericOutputter[T]) GenericSplitter ¶
func (y GenericOutputter[T]) GenericSplitter(t *tzap.Tzap) *tzap.Tzap
GenericSplitter takes a tzap.Tzap and applies the transformer and callback provided from the GenericOutputter. It returns an updated tzap.Tzap with data containing the children.
Click to show internal directories.
Click to hide internal directories.