This project contains features that help make the noisy stuff in every project.
- Filter slices, maps.
- Applying functions to collections.
- Null[any] for optional fields in API and sql.DB queries.
SliceIterallows you to iterate over slice with specialIterContextthat provide some methods likeIsFirst,IsLastSliceMapandSliceMapErrallow you to map a slice to another one. Useful for adapters.NewPoolsync.Poolwith genericsChanAdaptallows to create an adapted version of channelContextWithTimeoutruns a function with context and timeoutErrAshelps to handle an errorsSliceChunkiterates over chunksSliceChainjoins slices to oneStrSplitByCharssplits the string by symbols
This library contains a bunch of functions. Please see pkg.go.dev for examples.