helper

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

func Collect[V any](seq iter.Seq2[[]V, error]) ([]V, error)

Collect takes an iterator of slices and returns a concatentation of all results.

func TokenIterator

func TokenIterator[V any](
	fn func(token *string) (value V, nextToken *string, err error),
) iter.Seq2[V, error]

TokenIterator creates an iterator from a token-based pagination function `fn`. Iteration stops when nextToken is nil or an error occurs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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