Documentation ¶ Index ¶ type Orders func (o *Orders) Normalize(columns ...string) func (o *Orders) String() string type Pager func (p *Pager) Begin() int func (p *Pager) End() int func (p *Pager) Normalize(limits ...int) func (p *Pager) Pages() int func (p *Pager) Start() int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Orders ¶ added in v1.2.8 type Orders struct { Order string `json:"o,omitempty" form:"o"` } func (*Orders) Normalize ¶ added in v1.2.8 func (o *Orders) Normalize(columns ...string) func (*Orders) String ¶ added in v1.2.8 func (o *Orders) String() string type Pager ¶ type Pager struct { Page int `json:"p,omitempty" form:"p"` // page no Limit int `json:"l,omitempty" form:"l"` // page limit Count int `json:"-"` // page item count Total int `json:"-"` // total count } func (*Pager) Begin ¶ func (p *Pager) Begin() int func (*Pager) End ¶ func (p *Pager) End() int func (*Pager) Normalize ¶ func (p *Pager) Normalize(limits ...int) func (*Pager) Pages ¶ func (p *Pager) Pages() int Pages return the pages according to the total, limit. func (*Pager) Start ¶ func (p *Pager) Start() int Source Files ¶ View all Source files order.gopager.go Click to show internal directories. Click to hide internal directories.