Discover Packages
github.com/newpurr/easy-go
pagination
package
Version:
v0.0.0-...-15b0c83
Opens a new window with list of versions in this module.
Published: Jul 26, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func MaxPage(pageSize, totalRows int ) int
func PageOffset(page, pageSize int ) int
type FullPager struct {
CurrentPage int `json:"current_page"`
PageSize int `json:"page_size"`
TotalRows int `json:"total_rows"`
TotalPages int `json:"total_pages"`
}
type Pager struct {
CurrentPage int `json:"current_page"`
PageSize int `json:"page_size"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.