Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v1.16.3
type Option func(*config)
func WithBatch ¶ added in v1.16.14
WithBatch enables batch mode. The readline prompt and terminal manipulation are suppressed and raw lines are read from stdin. Batch mode auto-enables JSON output unless explicitly overridden.
func WithEval ¶ added in v1.16.14
WithEval sets a single expression to evaluate. The REPL evaluates the expression, prints the result, and exits.
func WithJSON ¶ added in v1.16.14
WithJSON enables JSON output mode. Each evaluation result is emitted as a single-line JSON object to stdout.
func WithStderr ¶ added in v1.16.3
func WithStderr(stderr io.WriteCloser) Option
WithStderr allows overriding the output to the REPL.
func WithStdin ¶ added in v1.16.3
func WithStdin(stdin io.ReadCloser) Option
WithStdin allows overriding the input to the REPL.
Click to show internal directories.
Click to hide internal directories.