view

package
v4.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseURLWithout added in v4.19.0

func BaseURLWithout(c fiber.Ctx, keys ...string) template.URL

func ToQueryString

func ToQueryString(m map[string]string) template.URL

func URL added in v4.6.0

func URL(c fiber.Ctx) template.URL

URL returns the current URL along with the query string

Types

type Page

type Page struct {
	Link      string
	IsCurrent bool
}

Page holds the URL of a results page, and if that page is the current one being shown

type PagesNavigator

type PagesNavigator struct {
	Pages        map[int]Page
	PreviousLink string
	NextLink     string
}

PagesNavigator contains all pages links, as well as links to the previous and next pages from the current one

func Pagination

func Pagination[T any](size int, results result.Paginated[T], params map[string]string) PagesNavigator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL