mollie-api-go
mollie-api-go copied to clipboard
Create a PaginatedResponse handler.
Is your feature request related to a problem? Please describe.
Every resource hace a list
endpoint which returns results paginated, currently the pagination package helps the user handle the pagination themselves.
Describe the solution you'd like A PaginatedResponse type which allows the user to programatically access the following:
- Next() returns the next page
- Previous() returns the previous page
- All() returns all the results possible (might take longer).
- Pages(n int) returns the number of pages requested.