Releases: wilhelm-murdoch/go-collection
Releases · wilhelm-murdoch/go-collection
v1.0.11
What's Changed
- bump supported go version by @wilhelm-murdoch in #2
New Contributors
- @wilhelm-murdoch made their first contribution in #2
Full Changelog: v1.0.10...v1.0.11
v1.0.10
Full Changelog: v1.0.9...v1.0.10
v1.0.9
Full Changelog: v1.0.8...v1.0.9
Added support for collection.Batch
:
// Batch exposes a very simple parallelized batch processor for a collection.
// Defining a `batchSize` will break the current collection into groups of
// jobs that will be processed in parallel by Goroutines managed by an error
// group. The specified function `f` will be executed for each job in each
// batch. The signature for this function is
// `func(currentBatchIndex, currentJobIndex int, job T) (T, error)`. Batch will
// return a new collection containing each job either upon completion, or until
// it encounters an error. For the latter, a collection containing any
// processed job up until that error will be returned in addition to the error
// itself.
v1.0.8
Full Changelog: v1.0.7...v1.0.8
Added support for collection.ContainsBy
:
// ContainsBy returns true if an item in the current collection matches the
// specified predicate function. This is useful if you have a slice of objects
// and you wish to check the existence of a specific field value.
v1.0.7
Full Changelog: v1.0.6...v1.0.7
Added support for custom sorting!
v1.0.6
Implements the Marshaler
interface so a collection and its items can be easily marshalled into valid JSON.
First Release!
This marks the first stable public release of this package. Enjoy!
v1.0.4
added support for collection.PushDistinct
v1.0.3
Merge branch 'main' of github.com:wilhelm-murdoch/go-collection
v1.0.2
Update README.md