Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPageSize = 50 DefaultPageNum = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination struct { PageNum int32 PageSize int32 Count int32 // total number of records in DB }
func NewPagination ¶
func NewPagination(pageNum, pageSize int32) *Pagination
func (*Pagination) Offset ¶
func (p *Pagination) Offset() int32
func (*Pagination) SetCount ¶
func (p *Pagination) SetCount(count int32)
Click to show internal directories.
Click to hide internal directories.