pagination

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagination

type Pagination struct {
	Request *http.Request
	Total   int
	Pernum  int
	BaseUrl string
}

Pagination 分页器

func NewPagination

func NewPagination(req *http.Request, total int, pernum int, baseUrl string) *Pagination

NewPagination 新建分页器

func (*Pagination) HtmlPages

func (p *Pagination) HtmlPages() template.HTML

func (*Pagination) Pages

func (p *Pagination) Pages() string

Pages 渲染生成html分页标签

Jump to

Keyboard shortcuts

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