Help us shape the future of Go! Take the 2026 Go Developer Survey

progload

package
v1.93.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package progload runs the forms a development tool evaluates one at a time, such as the REPL and the MCP eval and test tools, as the program's load (luthersystems/elps#908). A person who types or sends forms is loading their program, so s:defmethod and the other load-time forms work there. The rule lives here so that every such tool follows it the same way. An embedder's transactions must not run through it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(env *lisp.LEnv, eval func())

Run calls eval as the program's load of env (lisp.Runtime.BeginLoad) and ends the load when eval returns, also on a panic. Call it from the outer entry point of a tool, on the goroutine that evaluates the forms and around those forms only: the load depth is unsynchronized runtime state, so a load another goroutine runs on env at the same time races with it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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