rbgo

command
v0.0.0-...-aaf2ed9 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Command rbgo is the CLI front-end for the embedded-ruby interpreter.

A closed-world binary (produced by `rbgo build --closed`) instead uses the generated main in closed_main.go, which runs a single embedded program with no front-end linked — so this CLI is excluded from that build.

rbgo run <file.rb>            compile in memory and interpret
rbgo run -e "<code>"          run a one-liner
rbgo <file.rb>                shorthand for `rbgo run`
rbgo build [-o out] <file.rb> AOT-compile the program's lowerable methods to
                             native Go and link a specialised binary (see
                             internal/aot and docs/aot-compiler.md)

`repl` arrives in a later phase (plan-rbgo.md §17).

Jump to

Keyboard shortcuts

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