pagingutil

package
v1.3.15 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPagesSize

func GetPagesSize(
	eachPageSize,
	totalLength int,
) int

GetPagesSize returns ceiling int for pages possible

Types

type PagingInfo

type PagingInfo struct {
	PageIndex, SkipItems, EndingLength int
	IsPagingPossible                   bool
}

func GetPagingInfo

func GetPagingInfo(request PagingRequest) PagingInfo

type PagingRequest

type PagingRequest struct {
	// PageIndex usually starts from one.
	Length, PageIndex, EachPageSize int
}

PagingRequest

- PageIndex : Starts from one.

Jump to

Keyboard shortcuts

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