pagination

package
v0.0.0-...-22c784e Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 3 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 {
	Label    string
	Text     string
	Href     string
	Disabled bool
}

type Pagination

type Pagination struct {
	Total   int
	Current int
	Path    string
}

func New

func New(count int, size int, current int, path string) *Pagination

func (*Pagination) First

func (p *Pagination) First() Page

func (*Pagination) Last

func (p *Pagination) Last() Page

func (*Pagination) Next

func (p *Pagination) Next() Page

func (*Pagination) Previous

func (p *Pagination) Previous() Page

Jump to

Keyboard shortcuts

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