pagination

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagination

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

func New

func New(q url.Values) Pagination

func (Pagination) CurrentPage

func (p Pagination) CurrentPage() int

func (Pagination) HasNext

func (p Pagination) HasNext() bool

func (Pagination) HasPages

func (p Pagination) HasPages() bool

func (Pagination) HasPrevious

func (p Pagination) HasPrevious() bool

func (Pagination) Limit

func (p Pagination) Limit() int

func (Pagination) NextPage

func (p Pagination) NextPage() int

func (Pagination) Offset

func (p Pagination) Offset() int

func (Pagination) Pages

func (p Pagination) Pages() int

func (Pagination) PreviousPage

func (p Pagination) PreviousPage() int

func (*Pagination) SetTotal

func (p *Pagination) SetTotal(total int)

Jump to

Keyboard shortcuts

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