paginate

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package paginate provides url links for a paginated resource.

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
	Param   string
	// contains filtered or unexported fields
}

func New

func New(URL url.URL, param 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