Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DynamicLoadfunc ¶
func DynamicLoadfunc() starlarkhelpers.Function
func FromFile ¶
func FromFile(ctx context.Context, fpath string, src interface{}, load starlarkhelpers.LoaderFunc) error
Types ¶
type Loader ¶
type Loader struct { // Predeclared is used for builtin modules which are not loaded from a path. Predeclared func(module string) (starlark.StringDict, error) // WorkspacePath specifies the path to the source directory. WorkspacePath string }
Loader handles module loading for starlark modules.
func DefaultLoader ¶
func (*Loader) Sequential ¶
func (l *Loader) Sequential(ctx context.Context) func(thread *starlark.Thread, module string) (starlark.StringDict, error)
Sequential implements sequential module loading. Module paths starting with "//" will be loaded from WorkspacePath, which should be the mount path to the workspace source directory.
Click to show internal directories.
Click to hide internal directories.