package
Version:
v0.0.20-alpha
Opens a new window with list of versions in this module.
Published: Aug 5, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package dagg provides a simple interface for aggregating data.
type Agg[T any] struct {
}
Agg is an aggregation struct with methods to perform aggregations.
Add adds a value to be processed and aggregated.
Each passes the produced aggregation row by calling fn
GroupBy sets the group function for the aggregation.
Reduce adds a reduce function for the aggregation.
GroupFn type of function that will produce they key for the data to be
grouped.
type OptFn[T any] func(*Agg[T])
OptFn type of the option function for aggBuilder
Source Files
¶
Click to show internal directories.
Click to hide internal directories.