loader

package
v0.0.0-...-94e82ac Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add[T any](ctx context.Context, l *Loader, path string, dest *T, load func(ctx context.Context, f moreio.File) (T, error))

Types

type Callback

type Callback func(path string, i int, n int)

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, cb Callback) (*Loader, context.Context)

func (*Loader) Load

func (l *Loader) Load() error

Jump to

Keyboard shortcuts

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