paginate

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	Ascending bool
	Limit     int
	Prev      int
	Page      int
	Next      int
	Min       int
	Max       int
	Count     int // Count is the number items.
}

func NewPage

func NewPage(page, limit int, ascending bool) Page

func (*Page) Offset

func (p *Page) Offset() int

func (*Page) SetCount

func (p *Page) SetCount(count int)

Jump to

Keyboard shortcuts

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