{"modulePath":"github.com/glojurelang/glojure","version":"v0.7.25","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package repl\n\n## Functions\n\n```go\nfunc ColorSyntax(line []rune, env lang.Environment) string\n```\nColorSyntax returns an ANSI-colored version of the input for Clojure syntax highlighting.\n\n```go\nfunc IsTerminal() bool\n```\nIsTerminal reports whether standard input accepts terminal ioctls.\n\n```go\nfunc Start(opts ...Option)\n```\n\n## Types\n\n```go\ntype EvalFunc func(*options, interface{}) (string, error)\n```\nEvalFunc is the signature for eval functions passed to readEvalPrint. CLI wraps evalSafe with signal handling; WASM uses evalSafe directly.\n\n```go\ntype Option func(*options)\n```\nOption is a functional option for the REPL.\n\n```go\nfunc WithEnvironment(env lang.Environment) Option\n```\nWithEnvironment sets the execution environment for the REPL.\n\n```go\nfunc WithHistoryFile(path, format string) Option\n```\nWithHistoryFile sets the history file path and format. Format is \"jline\" for JLine format (Babashka/Leiningen), or empty for default JSON.\n\n```go\nfunc WithNREPLClient(c *nrepl.Client) Option\n```\nWithNREPLClient configures the REPL to send code to a remote nREPL server instead of evaluating locally.\n\n```go\nfunc WithShareBaseURL(baseURL string) Option\n```\nWithShareBaseURL sets the URL used when sharing REPL expressions.\n\n```go\nfunc WithStdin(r io.Reader) Option\n```\nWithStdin sets the stdin for the REPL.\n\n```go\nfunc WithStdout(w io.Writer) Option\n```\nWithStdout sets the stdout for the REPL.\n\n","path":"github.com/glojurelang/glojure/pkg/repl","name":"repl","synopsis":"","isRedistributable":true}
