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

romannumdemo/v0 package

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.

Function

Render

func Render(path string) string

Render drives gnoweb:

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

Param

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/moul/x/daily/romannumdemo/v0.Render()"

Result