pagingx

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLimit = 10

Variables

This section is empty.

Functions

func Normalize

func Normalize(p *proto_paging.Paging) *proto_paging.Paging

Normalize 标准化

func OffsetLimit

func OffsetLimit(p *proto_paging.Paging) (offset, limit int)

OffsetLimit 获取sql的offset limit

func WithTotal

func WithTotal(p *proto_paging.Paging, total int64) *proto_paging.Paging

WithTotal 填充总数

Types

This section is empty.

Jump to

Keyboard shortcuts

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