Documentation
¶
Index ¶
- Variables
- func EncodeMd5(str string) string
- func GetRandomString(n int) string
- func HZStringLength(s string) (length int)
- func LoginUrlFor(endpoint string, values ...interface{}) string
- func OnceFormHtml() template.HTML
- func OnceToken() (token string)
- func Thumb(url string, option string) string
- func ToInt64(value interface{}) (d int64, err error)
- type 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{})
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HZRange = [15][2]int{
{11904, 11929},
{11931, 12019},
{12032, 12245},
{12293, 12293},
{12295, 12295},
{12321, 12329},
{12344, 12347},
{13312, 19893},
{19968, 40908},
{63744, 64109},
{64112, 64217},
{131072, 173782},
{173824, 177972},
{177984, 178205},
{194560, 195101},
}
)
Functions ¶
func LoginUrlFor ¶
func OnceFormHtml ¶
Types ¶
type Paginator ¶
type Paginator struct { Request *http.Request PerPageNums int MaxPages int // contains filtered or unexported fields }
func (*Paginator) PageLinkFirst ¶
func (*Paginator) PageLinkLast ¶
func (*Paginator) PageLinkNext ¶
func (*Paginator) PageLinkPrev ¶
Click to show internal directories.
Click to hide internal directories.