Documentation
¶
Index ¶
- func GetLastPage(paginator *Paginator) int
- type Paginator
- func (p *Paginator) GetBase() int
- func (p *Paginator) GetCountdownOffset() *int
- func (p *Paginator) GetFirstItemOnPage() int
- func (p *Paginator) GetFirstPage() int
- func (p *Paginator) GetItemCount() *int
- func (p *Paginator) GetItemsPerPage() int
- func (p *Paginator) GetLastItemOnPage() int
- func (p *Paginator) GetLastPage() *int
- func (p *Paginator) GetLength() int
- func (p *Paginator) GetOffset() int
- func (p *Paginator) GetPage() int
- func (p *Paginator) GetPageCount() *int
- func (p *Paginator) GetPageIndex() int
- func (p *Paginator) IsFirst() bool
- func (p *Paginator) IsLast() bool
- func (p *Paginator) SetBase(base int) *Paginator
- func (p *Paginator) SetItemCount(itemCount int) *Paginator
- func (p *Paginator) SetItemsPerPage(itemsPerPage int) *Paginator
- func (p *Paginator) SetPage(page int) *Paginator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLastPage ¶ added in v1.1.0
Types ¶
type Paginator ¶
type Paginator struct {
// contains filtered or unexported fields
}
func NewPaginator ¶
func NewPaginator() *Paginator
func (*Paginator) GetCountdownOffset ¶ added in v1.1.0
func (*Paginator) GetFirstItemOnPage ¶ added in v1.1.0
func (*Paginator) GetFirstPage ¶ added in v1.1.0
func (*Paginator) GetItemCount ¶ added in v1.1.0
func (*Paginator) GetItemsPerPage ¶ added in v1.1.0
func (*Paginator) GetLastItemOnPage ¶ added in v1.1.0
func (*Paginator) GetLastPage ¶ added in v1.1.0
func (*Paginator) GetPageCount ¶ added in v1.1.0
func (*Paginator) GetPageIndex ¶ added in v1.1.0
func (*Paginator) SetItemCount ¶ added in v1.1.0
func (*Paginator) SetItemsPerPage ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.