modules

package
v0.0.4-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEarlyExit = errors.New("EXIT CALLED BY SCRIPT")

Functions

This section is empty.

Types

type LocalizedModule

type LocalizedModule interface {
	Name() string
	Exports() starlark.StringDict
	Destroy(ModuleLoader) error
}

Used by module loaders to orchestrate the use of a module

type ModuleExporterFn

type ModuleExporterFn func(loader ModuleLoader) (LocalizedModule, error)

type ModuleLoader

type ModuleLoader interface {
	SetState(string, interface{}) error
	GetState(string, interface{}) error
	GetThreadName() string
}

Used to expose a module loader to modules for consumption

Directories

Path Synopsis
crypto
encoding

Jump to

Keyboard shortcuts

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