Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
Pagination contains page information for building pagination Links.
func NewPagination ¶
func NewPagination(itemsPerPage, page int) Pagination
NewPagination constructs a Pagination object.
func NewPaginationFromQuery ¶
func NewPaginationFromQuery(values url.Values) Pagination
NewPaginationFromQuery constructs a Pagination from a URL query.
func NewPaginationFromString ¶
func NewPaginationFromString(itemsPerPageInput, pageInput string) Pagination
NewPaginationFromString constructs a Pagination from string input.
func (Pagination) FirstRecordPosition ¶ added in v0.3.0
func (p Pagination) FirstRecordPosition() int
FirstRecordPosition returns the first record position.
Click to show internal directories.
Click to hide internal directories.