Documentation ¶
Index ¶
- type Pagination
- func (p Pagination) FirstOnPage() int
- func (p Pagination) HasNextPage() bool
- func (p Pagination) HasPreviousPage() bool
- func (p Pagination) LastOnPage() int
- func (p Pagination) MaxVisiblePages() int
- func (p Pagination) NextPage() int
- func (p Pagination) Page() int
- func (p Pagination) PageCap() int
- func (p Pagination) PagesWithEllipsis() []int
- func (p Pagination) PreviousPage() int
- func (p Pagination) TotalPages() int
- func (p Pagination) UncappedTotalPages() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination struct {
Offset, Limit, Total int
}
func (Pagination) FirstOnPage ¶
func (p Pagination) FirstOnPage() int
func (Pagination) HasNextPage ¶
func (p Pagination) HasNextPage() bool
func (Pagination) HasPreviousPage ¶
func (p Pagination) HasPreviousPage() bool
func (Pagination) LastOnPage ¶
func (p Pagination) LastOnPage() int
func (Pagination) MaxVisiblePages ¶
func (p Pagination) MaxVisiblePages() int
func (Pagination) NextPage ¶
func (p Pagination) NextPage() int
func (Pagination) Page ¶
func (p Pagination) Page() int
func (Pagination) PageCap ¶
func (p Pagination) PageCap() int
func (Pagination) PagesWithEllipsis ¶
func (p Pagination) PagesWithEllipsis() []int
ported from https://metacpan.org/dist/Data-SpreadPagination/source/lib/Data/SpreadPagination.pm
func (Pagination) PreviousPage ¶
func (p Pagination) PreviousPage() int
func (Pagination) TotalPages ¶
func (p Pagination) TotalPages() int
func (Pagination) UncappedTotalPages ¶
func (p Pagination) UncappedTotalPages() int
Click to show internal directories.
Click to hide internal directories.