Versions in this module Expand all Collapse all v0 v0.10.2 Oct 26, 2021 Changes in this version + const DefaultSourceName + const NoTest + const Test + var ErrNotLive = errors.New("not live") + var ErrNotRunning = errors.New("not running") + var ErrRunning = errors.New("running") + var Symbols = Exports + type Breakpoint struct + Position token.Position + Valid bool + type BreakpointRequest func(*breakpointSetup, int) + func FunctionBreakpoint(name string) BreakpointRequest + func LineBreakpoint(line int) BreakpointRequest + type BreakpointTarget func(*Debugger, func(*node)) + func AllBreakpointTarget() BreakpointTarget + func PathBreakpointTarget(path string) BreakpointTarget + func ProgramBreakpointTarget(prog *Program) BreakpointTarget + type DebugEvent struct + func (evt *DebugEvent) FrameDepth() int + func (evt *DebugEvent) Frames(start, end int) []*DebugFrame + func (evt *DebugEvent) GoRoutine() int + func (evt *DebugEvent) Reason() DebugEventReason + type DebugEventReason int + const DebugBreak + const DebugEnterGoRoutine + const DebugEntry + const DebugExitGoRoutine + const DebugPause + const DebugStepInto + const DebugStepOut + const DebugStepOver + const DebugTerminate + type DebugFrame struct + func (f *DebugFrame) Name() string + func (f *DebugFrame) Position() token.Position + func (f *DebugFrame) Program() *Program + func (f *DebugFrame) Scopes() []*DebugFrameScope + type DebugFrameScope struct + func (f *DebugFrameScope) IsClosure() bool + func (f *DebugFrameScope) Variables() []*DebugVariable + type DebugGoRoutine struct + func (r *DebugGoRoutine) ID() int + func (r *DebugGoRoutine) Name() string + type DebugOptions struct + GoRoutineStartAt1 bool + type DebugVariable struct + Name string + Value reflect.Value + type Debugger struct + func (dbg *Debugger) Continue(id int) error + func (dbg *Debugger) GoRoutines() []*DebugGoRoutine + func (dbg *Debugger) Interrupt(id int, reason DebugEventReason) bool + func (dbg *Debugger) SetBreakpoints(target BreakpointTarget, requests ...BreakpointRequest) []Breakpoint + func (dbg *Debugger) Step(id int, reason DebugEventReason) error + func (dbg *Debugger) Terminate() + func (dbg *Debugger) Wait() (reflect.Value, error) + type Exports map[string]map[string]reflect.Value + type Interpreter struct + var Self *Interpreter + func New(options Options) *Interpreter + func (interp *Interpreter) Compile(src string) (*Program, error) + func (interp *Interpreter) CompileAST(n ast.Node) (*Program, error) + func (interp *Interpreter) CompilePath(path string) (*Program, error) + func (interp *Interpreter) Debug(ctx context.Context, prog *Program, events func(*DebugEvent), ...) *Debugger + func (interp *Interpreter) Eval(src string) (res reflect.Value, err error) + func (interp *Interpreter) EvalPath(path string) (res reflect.Value, err error) + func (interp *Interpreter) EvalPathWithContext(ctx context.Context, path string) (res reflect.Value, err error) + func (interp *Interpreter) EvalTest(path string) error + func (interp *Interpreter) EvalWithContext(ctx context.Context, src string) (reflect.Value, error) + func (interp *Interpreter) Execute(p *Program) (res reflect.Value, err error) + func (interp *Interpreter) ExecuteWithContext(ctx context.Context, p *Program) (res reflect.Value, err error) + func (interp *Interpreter) ImportUsed() + func (interp *Interpreter) REPL() (reflect.Value, error) + func (interp *Interpreter) Symbols(importPath string) Exports + func (interp *Interpreter) Use(values Exports) error + type Options struct + Args []string + BuildTags []string + GoCache string + GoPath string + GoToolDir string + SourcecodeFilesystem fs.FS + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + type Panic struct + Callers []uintptr + Stack []byte + Value interface{} + func (e Panic) Error() string + type Program struct