Documentation
¶
Index ¶
Constants ¶
const Logo = `` /* 1060-byte string literal not displayed */
Logo is the ASCII banner shown at REPL start and at the top of `help`. Tagline / control-key info is intentionally NOT embedded — Start() and printHelp() print their own context-appropriate footer so the messages don't conflict (Ctrl+C cancels input; Ctrl+D exits).
const Oops = `` /* 554-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type REPL ¶
type REPL struct {
// contains filtered or unexported fields
}
func NewREPL ¶
NewREPL builds a REPL bound to v. The `in` argument is accepted for API stability but unused: input is read through the readline instance, which drives its own terminal handle.
func (*REPL) AddPostInit ¶
AddPostInit appends a hook that runs against every VM this REPL owns. The hook is also applied to the current VM immediately so callers don't need to invoke it separately. Multiple calls compose — every hook runs in the order it was added.