Documentation ¶
Index ¶
- Variables
- func LoadGlobalModule(modulepath string, a ...interface{}) (err error)
- func RetrieveModule(modulepath ...string) (modules []*goja.Program)
- func UnloadGlobalModule(modulepath string) (existed bool)
- type Active
- func (atvrntme Active) AltActv() (atvactv parsing.AltActiveAPI)
- func (atv *Active) AltBinRead(r io.Reader, size int) (b []byte, err error)
- func (atv *Active) AltBinWrite(w io.Writer, b ...byte) (n int, err error)
- func (atv *Active) AltLookupTemplate(path string, a ...interface{}) (r io.Reader, err error)
- func (atv *Active) AltObjectRef() (objref map[string]interface{})
- func (atv *Active) AltPrint(w io.Writer, a ...interface{}) (err error)
- func (atv *Active) AltPrintln(w io.Writer, a ...interface{}) (err error)
- func (atv *Active) AltReadAll(r io.Reader) (s string, err error)
- func (atv *Active) AltReadlines(r io.Reader) (lines []string, err error)
- func (atv *Active) AltReadln(r io.Reader) (ln string, err error)
- func (atv *Active) AltSeek(r io.Reader, offset int64, whence int) (n int64, err error)
- func (atv *Active) Clear() (err error)
- func (atv *Active) Close() (err error)
- func (atv *Active) Dispose() (err error)
- func (atv *Active) Eval(wout io.Writer, rin io.Reader, initpath string, invertactpsv bool, ...) (err error)
- func (atv *Active) ExtractGlobals(extrglbs map[string]interface{})
- func (atv *Active) ImportGlobals(imprtglbs map[string]interface{})
- func (atv *Active) Interrupt()
- func (atv *Active) InvokeFunction(functocall interface{}, args ...interface{}) (result interface{})
- func (atv *Active) InvokeVM(callback func(vm *goja.Runtime) error)
- func (atv *Active) ProcessParsing(prsng *parsing.Parsing) (err error)
- type CodeException
- type Runtime
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func LoadGlobalModule ¶
func RetrieveModule ¶
func UnloadGlobalModule ¶
Types ¶
type Active ¶
type Active struct { Print func(a ...interface{}) (err error) Println func(a ...interface{}) (err error) BinWrite func(b ...byte) (n int, err error) FPrint func(w io.Writer, a ...interface{}) error FPrintLn func(w io.Writer, a ...interface{}) error FBinWrite func(w io.Writer, b ...byte) (n int, err error) Seek func(offset int64, whence int) (n int64, err error) Readln func() (string, error) ReadLines func() ([]string, error) ReadAll func() (string, error) BinRead func(size int) (b []byte, err error) FSeek func(io.Reader, int64, int) (int64, error) FReadln func(io.Reader) (string, error) FReadLines func(io.Reader) ([]string, error) FReadAll func(io.Reader) (string, error) FBinRead func(io.Reader, int) ([]byte, error) LookupTemplate func(string, ...interface{}) (io.Reader, error) ObjectMapRef func() map[string]interface{} CleanupValue func(vali interface{}, valt reflect.Type) //lckprnt *sync.Mutex InterruptVM func(v interface{}) // contains filtered or unexported fields }
Active - struct
func (Active) AltActv ¶
func (atvrntme Active) AltActv() (atvactv parsing.AltActiveAPI)
func (*Active) AltBinRead ¶
func (*Active) AltBinWrite ¶
func (*Active) AltLookupTemplate ¶
func (*Active) AltObjectRef ¶
func (*Active) AltPrintln ¶
func (*Active) AltReadlines ¶
func (*Active) Eval ¶
func (atv *Active) Eval(wout io.Writer, rin io.Reader, initpath string, invertactpsv bool, a ...interface{}) (err error)
Eval - parse a ...interface{} arguments, execute if neaded and output to wou io.Writer
func (*Active) ExtractGlobals ¶
ExtractGlobals extract globals from atv.atvruntime
func (*Active) ImportGlobals ¶
ImportGlobals import globals into atv.atvruntime
func (*Active) InvokeFunction ¶
func (atv *Active) InvokeFunction(functocall interface{}, args ...interface{}) (result interface{})
InvokeFunction ivoke *Acive.actvruntime function
type CodeException ¶
type CodeException struct {
// contains filtered or unexported fields
}
func (*CodeException) Code ¶
func (cdeerr *CodeException) Code() string
func (*CodeException) Error ¶
func (cdeerr *CodeException) Error() (s string)
func (*CodeException) ExecPath ¶
func (cdeerr *CodeException) ExecPath() string
Click to show internal directories.
Click to hide internal directories.