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 humanizedemo is a small gnoweb demo of the human-facing formatters provided by the [p/moul/x/daily/humanize](...

Readme View source

Humanize

⚠️ Experimental — generated with no human supervision by the daily MCP pipeline to exercise gno tooling. Not audited. See r/moul/x/daily.


Renders byte sizes, thousands separators, ordinals and block counts side by side.

Demo of the p/moul/x/daily/humanize library — no formatting logic lives here. Stateless, so Render is deterministic.

The ordinals row is chosen to show the teens (11th/12th/13th), which is where naive implementations produce 11st. The block-count rows show the deliberate vagueness: block counts are not wall-clock durations.

Built for gno 0.9.


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/humanizedemo/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 humanizedemo is a small gnoweb demo of the human-facing formatters provided by the p/moul/x/daily/humanize(/p/moul/x/daily/humanize/v0) library: byte sizes, thousands separators, ordinals and block counts.

It contains no formatting logic of its own. Stateless, so Render is deterministic.

Functions 1

func Render

1func Render(path string) string
source

Render renders the demo for gnoweb.

Imports 3

Source Files 3