Documentation ¶
Index ¶
- Variables
- func GetRequestedElementsPerPage(valueFromUrl string, perPageOptions []int) int
- func GetRequestedPage(valueFromUrl string) int
- type Pagination
- func (p Pagination) GetElementsFrom() int
- func (p Pagination) GetElementsTo() int
- func (p Pagination) GetNextUrl() string
- func (p Pagination) GetPageNumbers() []int
- func (p Pagination) GetPreviousUrl() string
- func (p Pagination) ShowEllipsisBetween(page1 int, page2 int) bool
- func (p Pagination) ShowNext() bool
- func (p Pagination) ShowPrevious() bool
- type UrlBuilder
Constants ¶
This section is empty.
Variables ¶
View Source
var Template string
Functions ¶
func GetRequestedPage ¶
Types ¶
type Pagination ¶
type Pagination struct { CurrentPage int TotalPages int TotalElements int ElementsPerPage int ElementName string PerPageOptions []int UrlBuilder UrlBuilder }
func (Pagination) GetElementsFrom ¶
func (p Pagination) GetElementsFrom() int
func (Pagination) GetElementsTo ¶
func (p Pagination) GetElementsTo() int
func (Pagination) GetNextUrl ¶
func (p Pagination) GetNextUrl() string
func (Pagination) GetPageNumbers ¶
func (p Pagination) GetPageNumbers() []int
func (Pagination) GetPreviousUrl ¶
func (p Pagination) GetPreviousUrl() string
func (Pagination) ShowEllipsisBetween ¶
func (p Pagination) ShowEllipsisBetween(page1 int, page2 int) bool
func (Pagination) ShowNext ¶
func (p Pagination) ShowNext() bool
func (Pagination) ShowPrevious ¶
func (p Pagination) ShowPrevious() bool
type UrlBuilder ¶
Click to show internal directories.
Click to hide internal directories.