pagination

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: GPL-3.0 Imports: 2 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 {
	Num    int
	Link   string
	Filler bool
	Active bool
}

func (*Page) Classes

func (p *Page) Classes() string

type State

type State struct {
	Total   int
	Current int
	// contains filtered or unexported fields
}

func New

func New(baseLink string, page, total, limit int) *State
func (s *State) NextLink() string

func (*State) NextLinkClasses

func (s *State) NextLinkClasses() string

func (*State) Pages

func (s *State) Pages() []Page
func (s *State) PrevLink() string

func (*State) PrevLinkClasses

func (s *State) PrevLinkClasses() string

Jump to

Keyboard shortcuts

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