evalmod

package
v0.26.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureCompilerCache

func EnsureCompilerCache() (string, error)

EnsureCompilerCache writes the full compiler source tree to ~/.cache/rugo/rugoeval/<hash>/ if it doesn't already exist. Returns the absolute path to the cache dir.

Types

type Eval

type Eval struct{}

func (*Eval) File

func (*Eval) File(path string, extra ...interface{}) interface{}

File compiles and runs a Rugo source file, returning a result hash. Extra arguments after the file path are passed to the compiled program.

func (*Eval) Run

func (*Eval) Run(source string) interface{}

Run compiles and runs a Rugo source string, returning a result hash with keys: "status" (int), "output" (string), "lines" (array).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL