pagination

package
v0.2.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanPaginate

func CanPaginate(page, pageSize, count uint) bool

func PurePageArgs

func PurePageArgs(page uint, pageSize uint) (uint, uint)

Types

type Pagination

type Pagination struct {
	Total       uint        `json:"total"`
	PerPage     uint        `json:"per_page"`
	CurrentPage uint        `json:"current_page"`
	LastPage    uint        `json:"last_page"`
	From        uint        `json:"from"`
	To          uint        `json:"to"`
	Data        interface{} `json:"data"`
}

func EmptyPagination

func EmptyPagination(page, pageSize uint) Pagination

func Paginate

func Paginate(page, pageSize, count uint, data interface{}) Pagination

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL