MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / SetPage

Method SetPage

api/models/pagination.go:62–65  ·  view source on GitHub ↗

SetPage update current page index.

(page int)

Source from the content-addressed store, hash-verified

60
61// SetPage update current page index.
62func (p *Pagination) SetPage(page int) {
63 p.Page = page
64 p.normalize()
65}
66
67// SetSize update page size.
68func (p *Pagination) SetSize(size int) {

Callers

nothing calls this directly

Calls 1

normalizeMethod · 0.95

Tested by

no test coverage detected