starlark

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	Call(functionName string, args ...starlark.Value) (starlark.Value, error)
	CallWithNative(functionName string, args ...any) (any, error)
}

type Module

type Module interface {
	Name() string
}

type VM

type VM interface {
	Module(mod Module) error
	Modules(mod ...Module) error
	File(module string) (Context, error)
}

func New

func New(filesystems ...fs.FS) (VM, error)

Jump to

Keyboard shortcuts

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