Documentation ¶
Overview ¶
Read Eval Print Loop
Index ¶
Constants ¶
View Source
const ( NormalPrompt = ">>> " ContinuationPrompt = "... " )
Possible prompts for the REPL
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type REPL ¶
Repl state
func (*REPL) Completer ¶
WordCompleter takes the currently edited line with the cursor position and returns the completion candidates for the partial word to be completed. If the line is "Hello, wo!!!" and the cursor is before the first '!', ("Hello, wo!!!", 9) is passed to the completer which may returns ("Hello, ", {"world", "Word"}, "!!!") to have "Hello, world!!!".
Click to show internal directories.
Click to hide internal directories.