Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Abbreviate ¶
func RandomStringGenerator ¶
Types ¶
type Pagination ¶
type Pagination struct { Limit int `json:"limit"` Page int `json:"page"` TotalItems int `json:"total_items"` TotalPages int `json:"total_pages"` Items interface{} `json:"items"` }
func NewPagination ¶
func NewPagination(limit int, page int, totalItems int, totalPages int, items interface{}) *Pagination
NewPagination initializes a new Pagination struct
func (*Pagination) Response ¶
func (p *Pagination) Response() map[string]interface{}
Response returns the pagination response in echo.Map format
Click to show internal directories.
Click to hide internal directories.