Documentation
¶
Overview ¶
templ: version: v0.3.833
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoResults = errors.New("no results found")
)
Functions ¶
func GetPageNum ¶
Types ¶
type PageObject ¶
type PageObject[T any] interface { // The number of objects on this page. // // This is NOT the total number of objects in the paginator. // // This might be less than the per page amount Count() int // A list of results on this page // Results() iter.Seq[T] Results() []T // The current page number PageNum() int // If the page has a next page HasNext() bool // If the page has a previous page HasPrev() bool // The next page number // This should return -1 if there is no next page Next() int // The previous page number // This should return -1 if there is no previous page Prev() int // A backreference to the paginator Paginator() Pagination[T] }
type Pagination ¶
Click to show internal directories.
Click to hide internal directories.