package
Version:
v0.0.0-...-c64bf0e
Opens a new window with list of versions in this module.
Published: Mar 22, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package page provides support for query paging.
type Document[T any] struct {
Items []T `json:"items"`
Total int `json:"total"`
Page int `json:"page"`
RowsPerPage int `json:"rowsPerPage"`
}
Document is the form used for API responses from query API calls.
NewDocument constructs a response value for a web paging trusted.
type Page struct {
Number int
RowsPerPage int
}
Page represents the requested page and rows per page.
Parse parses the request for the page and rows query string. The
defaults are provided as well.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.