function
CountedPage
CountedPage returns the normalized page for documents read at the bounds ListPageBounds computes for the requested page, limit and exact total.
Arguments
| Argument | Type | Description |
|---|---|---|
documents | []Document | The documents value. |
page | int | The page value. |
limit | int | The limit value. |
total | int | The total value. |
Returns
The declared result.
PageFull signature
func CountedPage(
documents []Document,
page,
limit,
total int,
) Page