Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v0 source realm

Package romannumdemo is a small gnoweb demo of the Roman-numeral converter provided by the [p/moul/x/daily/romannum](...

Readme View source

gno.land/r/moul/x/daily/romannumdemo/v0

Interactive gnoweb demo of the p/moul/x/daily/romannum Roman-numeral library — it renders a table of worked examples and interactive integer→Roman and Roman→integer conversions. It has no conversion logic of its own.

Render paths

  • : / root — a table of example conversions (1, 4, 9, 40, 90, 400, 900, 2024, 3999, …).
  • :/<n> — integer → Roman, e.g. :/2024MMXXIV.
  • :/r/<roman> — Roman → integer, e.g. :/r/MMXXIV2024 (case-insensitive).

Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

Dependency graph:

gno.land/r/moul/x/daily/romannumdemo/v0 dependency graph

🧪 Highly experimental — potentially vibe-coded. Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: DISCLAIMER.

Overview

Package romannumdemo is a small gnoweb demo of the Roman-numeral converter provided by the p/moul/x/daily/romannum(/p/moul/x/daily/romannum/v0) library: it renders a table of worked examples and interactive integer→Roman and Roman→integer conversions.

It contains no conversion logic of its own — everything comes from romannum.ToRoman and romannum.FromRoman.

Functions 1

func Render

1func Render(path string) string
source

Render drives gnoweb:

  • "" or "/" → a table of example conversions
  • "/<n>" → integer → Roman
  • "/r/<roman>" → Roman → integer

Imports 3

Source Files 3