Documentation ¶
Index ¶
Constants ¶
View Source
const PageSize = 25
Variables ¶
View Source
var Component = render.Component{ Template: "components/pager/pager.html", Functions: template.FuncMap{ "numPages": func(max int) int { return int(math.Ceil(float64(max) / PageSize)) }, "PageSize": func() int { return PageSize }, "dec": func(i int) int { return i - 1 }, "inc": func(i int) int { return i + 1 }, }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.