Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertPageEquals ¶ added in v0.5.0
AssertPageEquals asserts that two pages are equal.
func GetPageNumber ¶
GetPageNumber retrieves or sets the page number for paginated views.
Types ¶
type Page ¶ added in v0.5.0
type Page struct {
// The number of the current page.
PageNumber uint
// The number of the previous page.
PreviousPageNumber uint
// The number of the next page.
NextPageNumber uint
// The total number of pages.
TotalPages uint
// The number of pages left.
PagesLeft uint
// The total number of items.
ItemCount uint
// The offset of the first item on the current page.
ItemOffset uint
// Terms used in a search query.
SearchTerms string
}
A Page holds pagination metadata.
Click to show internal directories.
Click to hide internal directories.