Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Class ¶
type Class struct {
Methods map[string]Function // Function list
ByteCode *bytecode.ByteCode // Bytecode pointer
Object *Object //Pointer to class global object. For static objects only, etc: server, router, controller
Stack *MemoryStack // list of all declared global classes & objects in VM environment
}
Weblang class represantation in VM
type Function ¶
type Function struct {
Args map[string]interface{} // arguments list
Handler FunctionHandler
ClassMethod *method.ClassMethod // bytecode ClassMethod pointer
Class *Class // pointer to class struct
Stack *MemoryStack // list of all declared global classes & objects in VM environment
}
Web function representation in VM
type FunctionHandler ¶ added in v0.2.2
type FunctionHandler interface {
Invoke(args map[string]interface{}, funcPtr *Function) error // Invoke function execution
}
User defined function handler
Click to show internal directories.
Click to hide internal directories.