Versions in this module Expand all Collapse all v0 v0.1.0 Sep 3, 2022 v0.0.1 Sep 3, 2022 Changes in this version + var DefaultPageSize = 30 + var MaxPageSize = 100 + var PageSizeVar = "per_page" + var PageVar = "page" + type Pages struct + Items any + func New(page, perPage, total int) *Pages + func NewFromRequest(req *http.Request, count int) *Pages + func (p *Pages) BuildLinkHeader(baseURL string, defaultPerPage int) string + func (p *Pages) BuildLinks(baseURL string, defaultPerPage int) [4]string + func (p *Pages) Limit() int64 + func (p *Pages) Offset() int64 + func (v *Pages) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Pages) UnmarshalJSON(data []byte) error + func (v Pages) MarshalEasyJSON(w *jwriter.Writer) + func (v Pages) MarshalJSON() ([]byte, error) + type Pagination struct + Page int + PageCount int + PerPage int + TotalCount int + func (v *Pagination) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Pagination) UnmarshalJSON(data []byte) error + func (v Pagination) MarshalEasyJSON(w *jwriter.Writer) + func (v Pagination) MarshalJSON() ([]byte, error)