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 orderedmapdemo is a small gnoweb demo of the insertion-ordered map provided by the [p/moul/x/daily/orderedmap...

Readme View source

Ordered Map

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


Inserts four keys out of alphabetical order, then shows that the order survives an update and changes correctly after a delete-and-re-add.

Demo of the p/moul/x/daily/orderedmap library — no map logic lives here. Stateless, so Render is deterministic, which is exactly the property the library exists to provide.

The three tables are the whole argument: keys stay in insertion order, an update does not move a key, and a re-insertion after a delete goes last.

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/orderedmapdemo/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 orderedmapdemo is a small gnoweb demo of the insertion-ordered map provided by the p/moul/x/daily/orderedmap(/p/moul/x/daily/orderedmap/v0) library: it shows that order survives updates and deletes.

It contains no map logic of its own. Stateless, so Render is deterministic — which is precisely what the library is for.

Functions 1

func Render

1func Render(path string) string
source

Render renders the demo for gnoweb.

Imports 3

Source Files 3