Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Page struct {
Size int64 `json:"size"` // Page Size, default 100
Numb int64 `json:"numb"` // Page Numb, From One
}
func PageNormal ¶
func PageNormal() *Page
type Pagination ¶
func NewPagination ¶
func NewPagination[T any](paging *Paging, data []*T) *Pagination[T]
func (*Pagination[T]) Iter ¶
func (p *Pagination[T]) Iter(fn func(item *T, idx int))
Click to show internal directories.
Click to hide internal directories.