Documentation ¶
Index ¶
- type Page
- type Paginator
- func (p *Paginator) Current() int
- func (p *Paginator) HasNext() bool
- func (p *Paginator) HasPrevious() bool
- func (p *Paginator) IsFirst() bool
- func (p *Paginator) IsLast() bool
- func (p *Paginator) Next() int
- func (p *Paginator) Pages() []*Page
- func (p *Paginator) PagingNum() int
- func (p *Paginator) Previous() int
- func (p *Paginator) Total() int
- func (p *Paginator) TotalPages() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
Page presents a page in the paginator.
type Paginator ¶
type Paginator struct {
// contains filtered or unexported fields
}
Paginator represents a set of results of pagination calculations.
func (*Paginator) HasPrevious ¶
HasPrevious returns true if there is a previous page relative to current page.
func (*Paginator) Pages ¶
Pages returns a list of nearby page numbers relative to current page. If value is -1 means "..." that more pages are not showing.
func (*Paginator) TotalPages ¶
TotalPages returns number of total pages.
Click to show internal directories.
Click to hide internal directories.