paginate

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paginate

type Paginate struct {
	PageMin int
	Page    int
	PageMax int
	URL     *url.URL
	Query   string
}

func New

func New(URL url.URL, query string, pageMin, page, pageMax int) Paginate
func (p Paginate) FirstLink() string

func (Paginate) HasNext

func (p Paginate) HasNext() bool

func (Paginate) HasPrev

func (p Paginate) HasPrev() bool
func (p Paginate) LastLink() string
func (p Paginate) NextLink() string
func (p Paginate) PrevLink() string

Jump to

Keyboard shortcuts

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