executor

package
v0.0.0-...-804b567 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package executor builds a complete Go source file from the current session state plus new user input, runs it via `go run`, and returns the output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Output string
	IsErr  bool
}

Result holds the output of a single execution.

func Run

func Run(session *history.Session, input string) (Result, error)

Run compiles and runs the given input in the context of the session state. Compiler errors are returned as Result{IsErr: true}, not as Go errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL