paging

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PagingLimit = 20
)

Variables

This section is empty.

Functions

func Offset

func Offset(pageNo int64, limitNo int64) int64

Types

type Paging

type Paging struct {
	List  interface{} `json:"list"`
	Page  int64       `json:"page"`
	Limit int64       `json:"limit"`
	Count int64       `json:"count"`
	Total int64       `json:"total"`
	Start int64       `json:"start"`
	End   int64       `json:"end"`
}

func Pagination

func Pagination(pageNo int64, limitNo int64, getCount func() int64, getData func(limit int64, offset int64) interface{}) Paging

Jump to

Keyboard shortcuts

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