Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Importable tengo.Importable = NewExec()
)
Functions ¶
This section is empty.
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
Click to show internal directories.
Click to hide internal directories.