thread
typethread is a titled list of posts, kept in an avl.Tree so iteration is ordered by key rather than by insertion — the same guarantee the realm needs for a stable Render.
Value
v0.thread
post
typeValue
v0.post
newThread
func(name string) *v0.thread- OID
- 0765ea…aea6:3
newThread details
padIdx
func(i int) stringpadIdx renders i as a fixed-width, zero-padded key. Done by hand on purpose: gno's ufmt supports NO width or padding flags, so ufmt.Sprintf("%03d", 7) yields "7", not "007" — silently, with no error. Keys built that way sort as "0","1","10","11","2", which quietly reorders every thread past nine posts (TestOrderSurvivesPastNinePosts covers exactly this).
- OID
- 0765ea…aea6:5
padIdx details
Render
func(path string) stringRender renders the demo thread for gnoweb.
- OID
- 0765ea…aea6:6