Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPagingSize = 100
View Source
const FirstPage = 1
View Source
const MaxPagingSize = 2000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Pagination ¶
type Pagination struct { Paging *Paging `bson:"paging" json:"paging"` Items []interface{} `bson:"items" json:"items"` }
func PagingWrap ¶
func PagingWrap[T interface{}](paging *Paging, arr []*T, wrap func(m *T) interface{}) Pagination
Click to show internal directories.
Click to hide internal directories.