Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination struct { From int `json:"from"` To int `json:"to"` Total int64 `json:"total"` Data interface{} `json:"data"` PerPage int `json:"per_page"` CurrentPage int `json:"current_page"` Offset int `json:"-"` FirstPageUrl string `json:"first_page_url"` PrevPage *int `json:"prev_page"` PrevPageUrl *string `json:"prev_page_url"` NextPage *int `json:"next_page"` NextPageUrl *string `json:"next_page_url"` LastPage int `json:"last_page"` LastPageUrl string `json:"last_page_url"` Path string `json:"path"` }
func Paginate ¶
func Paginate(p *Param, result interface{}) *Pagination
Click to show internal directories.
Click to hide internal directories.