exec

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Importable tengo.Importable = NewExec()
)

Functions

func FuncARE

func FuncARE(fn func() error) tengo.CallableFunc

FuncARE transform a function of 'func() error' signature into CallableFunc type.

func FuncARYE

func FuncARYE(fn func() ([]byte, error)) tengo.CallableFunc

FuncARYE transform a function of 'func() ([]byte, error)' signature into CallableFunc type.

Types

type ImportExec

type ImportExec struct {
	Attrs map[string]tengo.Object
}

func NewExec

func NewExec() *ImportExec

func (*ImportExec) AsImmutableMap

func (ie *ImportExec) AsImmutableMap(name string) *tengo.ImmutableMap

AsImmutableMap converts builtin module into an immutable map.

func (*ImportExec) Import

func (ie *ImportExec) Import(moduleName string) (interface{}, error)

Import returns an immutable map for the module.

func (*ImportExec) Version

func (ie *ImportExec) Version() string

Jump to

Keyboard shortcuts

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