paginator

package
v0.0.0-...-6c8972c Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 4 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 {
	Order   int32
	URL     string
	Current bool
}

type Paginator

type Paginator struct {
	Prev         *Page
	Next         *Page
	Total        int32
	PerPage      int32
	TotalShowing int32
	CurrentPage  int32
	ShowingRange string
	Pages        []Page
}

func NewPaginator

func NewPaginator(currentPage, perPage int32, total int32, req *http.Request) Paginator

Jump to

Keyboard shortcuts

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