Help us shape the future of Go! Take the 2026 Go Developer Survey

loader

package
v1.124.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](fetch func(page int) ([]T, int, error)) *Loader[T]

func (*Loader[T]) Err

func (l *Loader[T]) Err() error

func (*Loader[T]) Next

func (l *Loader[T]) Next() bool

func (*Loader[T]) Page

func (l *Loader[T]) Page() []T

Jump to

Keyboard shortcuts

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