Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal lo.Chunk for map #533

Open
kostya05983 opened this issue Sep 13, 2024 · 0 comments
Open

Proposal lo.Chunk for map #533

kostya05983 opened this issue Sep 13, 2024 · 0 comments

Comments

@kostya05983
Copy link

kostya05983 commented Sep 13, 2024

Hello, I have a case where it would be great to have lo.chunk method for map. Below I provide an example of this case.

Sometimes, api can accept request with map, like:

var request map[string]RequestParams

where value RequestParams is parameters of request and key helps to identify your request in batch.

And api can accept maximum 50 elements in map.

Now if I need to process 500 items, I need to chunk it by myself and write additional code for chunking, it would be great to have such func in lo.
I could make a PR for it, if you agree to add it. Also, I could provide more details about solution and problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant