Help us shape the future of Go! Take the 2026 Go Developer Survey

rbgo

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: BSD-3-Clause Imports: 17 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 [options] [--] <file.rb> [arguments...]   interpret, ARGV = the arguments
rbgo [options] -e "<code>" [arguments...]      run a one-liner
rbgo run ...                                   the same, spelled explicitly
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)

The options and the script/ARGV boundary follow ruby.c; options.go holds the rule and the citations.

`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