args

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 3 Imported by: 3

Documentation

Index

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

Jump to

Keyboard shortcuts

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