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 state

Back to all declarations

thread

type

thread 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

type

Value

v0.post

newThread

func(name string) *v0.thread
Open
OID
0765ea…aea6:3
newThread details

Inspect func

padIdx

func(i int) string

padIdx 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).

Open
OID
0765ea…aea6:5
padIdx details

Inspect func

Render

func(path string) string

Render renders the demo thread for gnoweb.

Open
OID
0765ea…aea6:6
Render details

Inspect func
thread : type =v0.thread
post : type =v0.post
newThread : func(name string) *v0.thread Inspect
padIdx : func(i int) string Inspect
Render : func(path string) string Inspect