Documentation
¶
Overview ¶
Package interp is the generic mechanism for loading Go "policy" source at runtime: read a directory of .go files, compile them as a named package under a fresh yaegi interpreter, inject a set of host symbols the policy may import, and evaluate an expression (typically a function symbol) that the caller type-asserts and calls. A fresh interpreter per Load means a reload drops the previous code cleanly.
It bakes in no entrypoint contract: the package name, the injected symbols, and the evaluated expression are all parameters, so any program can load its own interpreted policy against its own host interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.