paging

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodedQuery

func EncodedQuery(q interface{}, exclude interface{}) string

a-h templ helpers

Types

type Pagination

type Pagination struct {
	CurrentPage int
	TotalPages  int
	Pages       []int
}

func NewPagination

func NewPagination(currentPage, totalPages int) Pagination

type Paging

type Paging struct {
	Limit         int    `url:"limit,omitempty"` // rows per page
	Page          int    `url:"page"`
	SortBy        string `url:"sort_by,omitempty"`
	SortDirection string `url:"sort_direction,omitempty"`

	// Refresh interval
	Refresh string `url:"refresh,omitempty"`
}

Jump to

Keyboard shortcuts

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