Documentation ¶
Overview ¶
Package batches contains support code for working with and testing batches of data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Batch ¶
Batch is a helper to perform some operation over a large number of values in a batch-oriented fashion. The indexes provided to the callback function are a half-open range [begin , end).
func Size ¶
func Size() int
Size returns the default size for batch operations. Testing code should generally use a multiple of this value to ensure that batching has been correctly implemented.
Types ¶
Click to show internal directories.
Click to hide internal directories.