item
typeitem is one entry on the board. \`address\` is the uverse bech32 type — it is persistable (unlike a \`realm\` value), so it is safe to store across txs.
Value
v0.item
items
v0.Tree- OID
- 0c209b…03e8:4
items details
nextID
intValue
0
Add
func(text string) intAdd appends a new item authored by the caller and returns its id. Crossing function: takes \`cur realm\` first (gno 0.9 interrealm convention), authenticates with cur.IsCurrent() before trusting cur.Previous().
- OID
- 0c209b…03e8:6
Add details
Toggle
func(id int)Toggle flips the done state of the item with the given id.
- OID
- 0c209b…03e8:8
Toggle details
Remove
func(id int)Remove deletes the item with the given id.
- OID
- 0c209b…03e8:9
Remove details
idKey
func(id int) stringidKey renders an id as a fixed-width, zero-padded key so avl.Tree's byte-lexicographic ordering matches numeric id ordering.
- OID
- 0c209b…03e8:10
idKey details
shortAddr
func(a .uverse.address) stringshortAddr renders an address as "g1abc…" (first 6 chars + ellipsis).
- OID
- 0c209b…03e8:11
shortAddr details
counts
func() (open int, done int)counts returns the number of open and done items.
- OID
- 0c209b…03e8:12
counts details
Render
func(path string) stringRender returns the board as Markdown. Newest item (highest id) first. Render is NOT a crossing function (no \`cur realm\` param) — it is read-only and invoked by gnoweb, not via MsgCall.
- OID
- 0c209b…03e8:13