just
Just a collection of useful functions for working with generic data structures
About just
just
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.
Most helpful functions
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
Examples
This library contains a bunch of functions. Please see pkg.go.dev for examples.
Frequently Asked Questions
What is just?
just is a Utilities library for the Go programming language. Just a collection of useful functions for working with generic data structures
How do I install just?
Install just with the Go module system using `go get kazhuravlev/just`. Check the repository for the current installation instructions.
What category does just belong to?
just is listed under Utilities, specifically Utilities.