Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanPaginate ¶
Types ¶
type Pagination ¶
type Pagination struct {
Total uint `json:"total"`
PerPage uint `json:"per_page"`
CurrentPage uint `json:"current_page"`
LastPage uint `json:"last_page"`
From uint `json:"from"`
To uint `json:"to"`
Data interface{} `json:"data"`
}
func EmptyPagination ¶
func EmptyPagination(page, pageSize uint) Pagination
func Paginate ¶
func Paginate(page, pageSize, count uint, data interface{}) Pagination
Click to show internal directories.
Click to hide internal directories.