paginator

package module
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2025 License: BSD-3-Clause Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

gouef/paginator

Paginator

GoDoc GitHub stars Go Report Card codecov

Versions

Stable Version GitHub Release GitHub Release

Contributors

JanGalek actions-user

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLastPage added in v1.1.0

func GetLastPage(paginator *Paginator) int

Types

type Paginator

type Paginator struct {
	// contains filtered or unexported fields
}

func NewPaginator

func NewPaginator() *Paginator

func (*Paginator) GetBase added in v1.1.0

func (p *Paginator) GetBase() int

func (*Paginator) GetCountdownOffset added in v1.1.0

func (p *Paginator) GetCountdownOffset() *int

func (*Paginator) GetFirstItemOnPage added in v1.1.0

func (p *Paginator) GetFirstItemOnPage() int

func (*Paginator) GetFirstPage added in v1.1.0

func (p *Paginator) GetFirstPage() int

func (*Paginator) GetItemCount added in v1.1.0

func (p *Paginator) GetItemCount() *int

func (*Paginator) GetItemsPerPage added in v1.1.0

func (p *Paginator) GetItemsPerPage() int

func (*Paginator) GetLastItemOnPage added in v1.1.0

func (p *Paginator) GetLastItemOnPage() int

func (*Paginator) GetLastPage added in v1.1.0

func (p *Paginator) GetLastPage() *int

func (*Paginator) GetLength added in v1.1.0

func (p *Paginator) GetLength() int

func (*Paginator) GetOffset added in v1.1.0

func (p *Paginator) GetOffset() int

func (*Paginator) GetPage added in v1.1.0

func (p *Paginator) GetPage() int

func (*Paginator) GetPageCount added in v1.1.0

func (p *Paginator) GetPageCount() *int

func (*Paginator) GetPageIndex added in v1.1.0

func (p *Paginator) GetPageIndex() int

func (*Paginator) IsFirst added in v1.1.0

func (p *Paginator) IsFirst() bool

func (*Paginator) IsLast added in v1.1.0

func (p *Paginator) IsLast() bool

func (*Paginator) SetBase added in v1.1.0

func (p *Paginator) SetBase(base int) *Paginator

func (*Paginator) SetItemCount added in v1.1.0

func (p *Paginator) SetItemCount(itemCount int) *Paginator

func (*Paginator) SetItemsPerPage added in v1.1.0

func (p *Paginator) SetItemsPerPage(itemsPerPage int) *Paginator

func (*Paginator) SetPage added in v1.1.0

func (p *Paginator) SetPage(page int) *Paginator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL