Documentation ¶
Index ¶
- Variables
- func RegisterFunction(name string, function object.GoFunction)
- func RegisterModule(name string, methods map[string]*object.LibraryFunction, ...)
- type Ghost
- func (ghost *Ghost) Call(function string, args []object.Object) object.Object
- func (ghost *Ghost) Execute() object.Object
- func (ghost *Ghost) GetDirectory() string
- func (ghost *Ghost) SetDirectory(directory string)
- func (ghost *Ghost) SetFile(file string)
- func (ghost *Ghost) SetSource(source string)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterFunction ¶
func RegisterFunction(name string, function object.GoFunction)
func RegisterModule ¶ added in v0.18.0
func RegisterModule(name string, methods map[string]*object.LibraryFunction, properties map[string]*object.LibraryProperty)
Types ¶
type Ghost ¶ added in v0.18.0
func (*Ghost) Call ¶ added in v0.19.0
Create a new function called "Call" that will call the passed function with the (optional) passed arguments.
func (*Ghost) GetDirectory ¶ added in v0.18.0
func (*Ghost) SetDirectory ¶ added in v0.18.0
Click to show internal directories.
Click to hide internal directories.