The pagination package provides generic functions for iterating over a collection of items such that each incoming request is filled even after filtering is applied.
10 lines
390 B
Go
10 lines
390 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
// Package pagination implements generic functions for paginating
|
|
// through a collection using callbacks. The functions will automatically
|
|
// request additional items to match the input page size even when
|
|
// some items may be filtered out.
|
|
// See example_test.go for examples of using the library.
|
|
package pagination
|