pagination

package
v0.0.0-...-4e578c8 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

func Collect[T any](fn func(cursor string) (resp T, nextCursor string, err error)) ([]T, error)

func Reduce

func Reduce[T any, R any](
	fetch func(cursor string) (resp T, nextCursor string, err error),
	combine func(resp T, acc R) (R, error),
) (R, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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