Misc doc, code refactoring to improve documentation

This commit is contained in:
Bjørn Erik Pedersen
2022-12-30 09:20:58 +01:00
parent 3c51625c71
commit e402d91ee1
47 changed files with 238 additions and 95 deletions

View File

@@ -27,8 +27,10 @@ import (
// PaginatorProvider provides two ways to create a page paginator.
type PaginatorProvider interface {
// Paginator creates a paginator with the default page set.
Paginator(options ...any) (*Pager, error)
Paginate(seq any, options ...any) (*Pager, error)
// Paginate creates a paginator with the given page set in pages.
Paginate(pages any, options ...any) (*Pager, error)
}
// Pager represents one of the elements in a paginator.