pagination

package
v0.0.0-...-91ccb22 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CursorPage

type CursorPage[T any] struct {
	Edges   []T
	Cursors []string
	HasNext bool
}

CursorPage holds paginated results

func Cursors

func Cursors[T any](items []T, first int, after *string, keyFunc func(T) int32) (*CursorPage[T], error)

Cursors performs cursor-based pagination using a key extractor function

Jump to

Keyboard shortcuts

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