Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "v2.1.0"
Version holds current source version number
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncodedBody ¶
type EncodedBody interface{}
EncodedBody is a Tag inner text content (HTML encoded).
type Paginator ¶
type Paginator struct { // Current page you're on Page int `json:"page"` // Number of results you want per page PerPage int `json:"per_page"` // Page * PerPage (ex: 2 * 20, Offset == 40) Offset int `json:"offset"` // Total potential records matching the query TotalEntriesSize int `json:"total_entries_size"` // Total records returns, will be <= PerPage CurrentEntriesSize int `json:"current_entries_size"` // Total pages TotalPages int `json:"total_pages"` }
Paginator describes a pagination meta data
type Tag ¶
type Tag struct { Name string Options Options Selected bool Checked bool BeforeTag []BeforeTag Body []Body EncodedBody []EncodedBody AfterTag []AfterTag }
Tag describes a HTML tag meta data.
func JavascriptTag ¶
JavascriptTag builds JS tags based in passed options
func Pagination ¶
Pagination builds pagination Tag based on a passed pagintation interface
func StylesheetTag ¶
StylesheetTag builds the <link> tag to load styles on the page.
Click to show internal directories.
Click to hide internal directories.