Documentation
¶
Index ¶
- type Pagination
- func (p *Pagination) FirstPart() []string
- func (p *Pagination) GetActivePageWrapper(text string) string
- func (p *Pagination) GetAvailablePageWrapper(href, page string) string
- func (p *Pagination) GetDisabledPageWrapper(text string) string
- func (p *Pagination) GetDots() string
- func (p *Pagination) GetNextButton(text string) string
- func (p *Pagination) GetPreviousButton(text string) string
- func (p *Pagination) HasPages() bool
- func (p *Pagination) LastPart() []string
- func (p *Pagination) MiddlePart() []string
- func (p *Pagination) Render() template.HTML
- func (p *Pagination) TotalPages() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination struct {
// contains filtered or unexported fields
}
func New ¶
func New(totalAmount, perPage, currentPage int, baseUrl string) *Pagination
New constructor
func (*Pagination) FirstPart ¶
func (p *Pagination) FirstPart() []string
func (*Pagination) GetActivePageWrapper ¶
func (p *Pagination) GetActivePageWrapper(text string) string
func (*Pagination) GetAvailablePageWrapper ¶
func (p *Pagination) GetAvailablePageWrapper(href, page string) string
func (*Pagination) GetDisabledPageWrapper ¶
func (p *Pagination) GetDisabledPageWrapper(text string) string
func (*Pagination) GetDots ¶
func (p *Pagination) GetDots() string
func (*Pagination) GetNextButton ¶
func (p *Pagination) GetNextButton(text string) string
func (*Pagination) GetPreviousButton ¶
func (p *Pagination) GetPreviousButton(text string) string
func (*Pagination) LastPart ¶
func (p *Pagination) LastPart() []string
func (*Pagination) MiddlePart ¶
func (p *Pagination) MiddlePart() []string
Click to show internal directories.
Click to hide internal directories.