{"modulePath":"github.com/glojurelang/glojure","version":"v0.2.2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package runtime\n\n## Variables\n\n```go\nvar (\n\tSymbolUnquote       = value.NewSymbol(\"clojure.core/unquote\") // TODO: rename to glojure.core/unquote\n\tSymbolSpliceUnquote = value.NewSymbol(\"splice-unquote\")\n\tSymbolNamespace     = value.NewSymbol(\"ns\")\n\tSymbolInNamespace   = value.NewSymbol(\"in-ns\")\n\tSymbolUserNamespace = value.NewSymbol(\"user\")\n\tSymbolDot           = value.NewSymbol(\".\")\n)\n```\n\n```go\nvar (\n\tDebug = false\n\n\tSymNS   = value.NewSymbol(\"ns\")\n\tSymInNS = value.NewSymbol(\"in-ns\")\n)\n```\n\n```go\nvar (\n\tCompiler = \u0026evalCompiler{}\n)\n```\n\n```go\nvar (\n\tRT = \u0026RTMethods{}\n)\n```\n\n## Functions\n\n```go\nfunc AddLoadPath(fs fs.FS)\n```\nAddLoadPath adds a filesystem to the load path.\n\n```go\nfunc NewEnvironment(opts ...EvalOption) value.Environment\n```\n\n```go\nfunc RTReadString(s string) interface{}\n```\n\n```go\nfunc ReadEval(code string, options ...ReadEvalOption) interface{}\n```\nReadEval reads and evaluates a string that may contain one or more forms in the global environment.\n\n## Types\n\n```go\ntype EvalError struct {\n\tErr      error\n\tGLJStack []string\n\tGoStack  string\n}\n```\n\n```go\nfunc (e *EvalError) Error() string\n```\n\n```go\nfunc (e *EvalError) Is(err error) bool\n```\n\n```go\nfunc (e *EvalError) Unwrap() error\n```\n\n```go\ntype EvalOption func(*evalOptions)\n```\n\n```go\nfunc WithLoadPath(path []string) EvalOption\n```\n\n```go\nfunc WithStderr(w io.Writer) EvalOption\n```\n\n```go\nfunc WithStdout(w io.Writer) EvalOption\n```\n\n```go\ntype Fn struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewFn(astNode *ast.Node, env lang.Environment) *Fn\n```\n\n```go\nfunc (fn *Fn) ApplyTo(args lang.ISeq) interface{}\n```\n\n```go\nfunc (fn *Fn) Invoke(args ...interface{}) interface{}\n```\n\n```go\nfunc (fn *Fn) Meta() lang.IPersistentMap\n```\n\n```go\nfunc (fn *Fn) WithMeta(meta lang.IPersistentMap) interface{}\n```\n\n```go\ntype Program struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *Program) Eval(opts ...EvalOption) (interface{}, error)\n```\n\n```go\ntype RTMethods struct {\n\t// contains filtered or unexported fields\n}\n```\nRT is a struct with methods that map to Clojure's RT class' static methods. This approach is used to make translation of core.clj to Glojure easier.\n\n```go\nfunc (rt *RTMethods) Alength(x interface{}) int\n```\n\n```go\nfunc (rt *RTMethods) BooleanCast(x interface{}) bool\n```\n\n```go\nfunc (rt *RTMethods) ByteCast(x interface{}) byte\n```\n\n```go\nfunc (rt *RTMethods) CharCast(x interface{}) Char\n```\n\n```go\nfunc (rt *RTMethods) Contains(coll, key interface{}) bool\n```\n\n```go\nfunc (rt *RTMethods) Dissoc(x interface{}, k interface{}) interface{}\n```\n\n```go\nfunc (rt *RTMethods) Find(coll, key interface{}) interface{}\n```\n\n```go\nfunc (rt *RTMethods) FindVar(qualifiedSym *Symbol) *Var\n```\n\n```go\nfunc (rt *RTMethods) IntCast(x interface{}) int\n```\n\n```go\nfunc (rt *RTMethods) Load(scriptBase string)\n```\n\n```go\nfunc (rt *RTMethods) Munge(name string) string\n```\n\n```go\nfunc (rt *RTMethods) NextID() int\n```\n\n```go\nfunc (rt *RTMethods) Nth(x interface{}, i int) interface{}\n```\n\n```go\nfunc (rt *RTMethods) NthDefault(x interface{}, i int, def interface{}) interface{}\n```\n\n```go\nfunc (rt *RTMethods) Peek(x interface{}) interface{}\n```\n\n```go\nfunc (rt *RTMethods) Pop(x interface{}) interface{}\n```\n\n```go\nfunc (rt *RTMethods) Subvec(v IPersistentVector, start, end int) IPersistentVector\n```\n\n```go\nfunc (rt *RTMethods) ToArray(coll interface{}) interface{}\n```\n\n```go\nfunc (rt *RTMethods) UncheckedCharCast(x interface{}) Char\n```\n\n```go\ntype ReadEvalOption func(*readEvalOptions)\n```\nReadEvalOption is an option for ReadEval.\n\n```go\nfunc WithEnv(env value.Environment) ReadEvalOption\n```\nWithEnv sets the environment to use for evaluation.\n\n```go\nfunc WithFilename(filename string) ReadEvalOption\n```\nWithFilename sets the filename to use for evaluation.\n\n","path":"github.com/glojurelang/glojure/pkg/runtime","name":"runtime","synopsis":"","isRedistributable":true}
