Documentation ¶
Overview ¶
Package pagination provides helpers for dealing with pagination.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Header ¶ added in v0.0.45
Header adds an http header for pagination using a responsewriter where backwards compatibility is required. The header will contain links any combination of the first, last, next, or previous (prev) pages in a paginated list (given a limit and an offset, and optionally a total). If total is not set, then no "last" page will be calculated. If no limit is provided, then it will default to 1.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.