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 returns an http header map, with a single key, "Link". The "Link" header is used in pagination where backwards compatibility is required. The Link 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.