Versions in this module Expand all Collapse all v1 v1.4.3 Feb 27, 2015 v1.4.2 Nov 6, 2014 Changes in this version + func ToInt64(value interface{}) (d int64, err error) + type Paginator struct + MaxPages int + PerPageNums int + Request *http.Request + func NewPaginator(req *http.Request, per int, nums interface{}) *Paginator + func SetPaginator(context *context.Context, per int, nums int64) (paginator *Paginator) + func (p *Paginator) HasNext() bool + func (p *Paginator) HasPages() bool + func (p *Paginator) HasPrev() bool + func (p *Paginator) IsActive(page int) bool + func (p *Paginator) Nums() int64 + func (p *Paginator) Offset() int + func (p *Paginator) Page() int + func (p *Paginator) PageLink(page int) string + func (p *Paginator) PageLinkFirst() (link string) + func (p *Paginator) PageLinkLast() (link string) + func (p *Paginator) PageLinkNext() (link string) + func (p *Paginator) PageLinkPrev() (link string) + func (p *Paginator) PageNums() int + func (p *Paginator) Pages() []int + func (p *Paginator) SetNums(nums interface{})