regexp
Ruby Regexp
Onigmo-compatible regular-expression engine
One pure-Go, CGO-free import for the whole MRI-compatible Ruby standard library.
go-ruby-stdlib is the umbrella for a family of pure-Go (no cgo) reimplementations of the Ruby standard library, each faithful to reference Ruby (MRI) and validated by a differential oracle against the ruby binary. Import the aggregate github.com/go-ruby-stdlib/stdlib to pull the whole tower, or depend on any single module directly. Every module below lives in its own org — click through to its repo, landing page, or docs.
regexpRuby Regexp
Onigmo-compatible regular-expression engine
erbRuby ERB
ERB embedded-Ruby templating
yamlRuby YAML/Psych
YAML emitter and loader (Psych)
formatRuby format/sprintf
sprintf / format / String#% formatting
strscanRuby StringScanner
StringScanner lexical scanning
optparseRuby OptionParser
OptionParser command-line option parsing
jsonRuby JSON
JSON generation and parsing
bigdecimalRuby BigDecimal
arbitrary-precision decimal arithmetic
dateRuby Date/DateTime
Date and DateTime
uriRuby URI
URI parsing and manipulation
csvRuby CSV
CSV reading and writing
shellwordsRuby Shellwords
POSIX shell-style word splitting and escaping
digestRuby Digest
message digests (MD5/SHA1/SHA2/…)
marshalRuby Marshal
Marshal binary object serialization
setRuby Set
unordered unique collection with full set algebra
timeRuby Time
Time extensions (parse/strptime/RFC formats)
getoptlongRuby GetoptLong
GNU-style command-line option parsing
scanfRuby scanf
formatted input scanning
stringioRuby StringIO
in-memory string-backed IO
abbrevRuby Abbrev
unambiguous abbreviation calculation
tsortRuby TSort
topological sorting
primeRuby Prime
prime generation and Baillie-PSW primality
cgiRuby CGI
CGI escaping, cookies, and helpers
zlibRuby Zlib
deflate/inflate/gzip plus CRC32/Adler32
did-you-meanRuby DidYouMean
spelling suggestions for names
ipaddrRuby IPAddr
IPv4/IPv6 address manipulation
pathnameRuby Pathname
filesystem-path objects
rationalRuby Rational
exact rational numbers
prettyprintRuby PrettyPrint
Wadler pretty-printing engine
unicode-normalizeRuby unicode_normalize
Unicode normalization (NFC/NFD/NFKC/NFKD)
cmathRuby CMath
complex-valued math functions
matrixRuby Matrix
Matrix and Vector linear algebra
complexRuby Complex
complex numbers
resolvRuby Resolv
DNS resolution primitives
rexmlRuby REXML
XML DOM, parsing, serialization, XPath subset
loggerRuby Logger
leveled logging
base64Ruby Base64
Base64 encode/decode (SIMD-accelerated)
securerandomRuby SecureRandom
cryptographically-secure random values
ostructRuby OpenStruct
dynamic attribute objects
benchmarkRuby Benchmark
timing measurement
pstoreRuby PStore
transactional file-backed object store
observerRuby Observable
publish/subscribe mixin
findRuby Find
recursive directory traversal
Every module is pure Go with CGO_ENABLED=0 — trivial cross-compilation, a single static binary, no C toolchain — MRI byte-exact, and standalone & reusable: each is the backend bound by rbgo into github.com/go-embedded-ruby, with the dependency running the other way. 100% coverage is the CI gate, green across the six 64-bit Go targets and three OSes.