function
UncountedPageBounds
UncountedPageBounds normalizes a SkipTotal list read without a total. The adapter reads at most limit+1 rows starting at offset; an offset of math.MaxInt cannot hold a document.
Arguments
| Argument | Type | Description |
|---|---|---|
page | int | The page value. |
limit | int | The limit value. |
Returns
The declared result.
(normalizedPage int, normalizedLimit int, offset int)Full signature
func UncountedPageBounds(
page,
limit int,
) (normalizedPage, normalizedLimit, offset int)