3c30109cd0
* fix bytecode encoding/decoding of builtin modules * Bytecode.Decode() to take map[string]objects.Importable * add objects.ModuleMap * update docs * stdlib.GetModuleMap()
7 lines
232 B
Go
7 lines
232 B
Go
package objects
|
|
|
|
// Importable interface represents importable module instance.
|
|
type Importable interface {
|
|
// Import should return either an Object or module source code ([]byte).
|
|
Import(moduleName string) (interface{}, error)
|
|
}
|