Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

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
017afc…a028: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
017afc…a028:5
padIdx details

Inspect func

Render

func(path string) string

Render renders the demo thread for gnoweb.

Open
OID
017afc…a028: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