loader

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCycle           = errors.New("import cycle detected")
	ErrRetrievalFailed = errors.New("failed to retrieve module")
)

Functions

This section is empty.

Types

type CacheEntry

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

type Loader

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

func NewLoader

func NewLoader(ctx context.Context, fs fs.FileSystem, env map[string]string) *Loader

func (*Loader) LoadFunc

func (loader *Loader) LoadFunc() func(thread *starlark.Thread, module string) (starlark.StringDict, error)

func (*Loader) Retrieve

func (loader *Loader) Retrieve(module string) ([]byte, error)

Directories

Path Synopsis
git

Jump to

Keyboard shortcuts

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