pagination

package
v5.0.0-beta.21 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPageOffset

func GetPageOffset[T ~int | ~int32](page, pageSize T) int

func InitByDefault

func InitByDefault[T ~int32 | ~int64 | ~int](inPage *T, inPageSize *T) (page, pageSize T)

Types

type Pagination

type Pagination struct {
	Page     int32
	PageSize int32
	Count    int32
}

func NewPagination

func NewPagination[T ~int | ~int64 | ~int32, V ~int | ~int64 | ~int32](page T, pageSize T, count V) *Pagination

Jump to

Keyboard shortcuts

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