pagination

package
v0.0.0-...-ff35399 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SliceFromValues

func SliceFromValues(list Interface, values url.Values) (Interface, Pages)

SliceFromValues slices the given list into the values gathered form the url values

Types

type Interface

type Interface interface {
	sort.Interface
	GetPaginatedList(from, to int) Interface
}

type Page

type Page struct {
	From int
	To   int
}

type Pages

type Pages struct {
	Pages     []Page
	Current   int
	ItemCount int
}

Jump to

Keyboard shortcuts

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