pager

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pager

type Pager struct {
	BeginPage  int
	BeginIndex int
	PageSize   int
}

Pager is a tool to help paging

func (*Pager) Begin

func (p *Pager) Begin(page int) int

func (*Pager) BeginByString

func (p *Pager) BeginByString(page string) int

func (*Pager) End

func (p *Pager) End(page int) int

func (*Pager) EndByString

func (p *Pager) EndByString(page string) int

type PagerGroup

type PagerGroup struct {
	// contains filtered or unexported fields
}

func (*PagerGroup) Add

func (pg *PagerGroup) Add(beginPage, beginIndex, pageSize int) (p *Pager)

Jump to

Keyboard shortcuts

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