pagination

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOffset added in v1.0.17

func GetOffset(pageNum, pageSize, totalAmount int64) (offSet, realPageNum int64)

func GetOffsetAndPageNum

func GetOffsetAndPageNum(pageNum, pageSize string, totalAmount int) (offSet, realPageNum, pageSizeInt int)

GetOffset returns the number of records to skip before starting to return the records http://gorm.io/docs/query.html#Offset use GetOffset if parameter type is int64

func GetTheLastNumber

func GetTheLastNumber(pageNum, pageSize string, totalAmount int) (lastNum int)

获得最后一页的最后一个是第几个

Types

This section is empty.

Jump to

Keyboard shortcuts

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