Skip to content Search Apps Documentation Source Content Run Reset Eval Playground 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

unsigned

[]uint64 (len=9)

Fixed inputs, never chain state: a demo whose output moves with the block height cannot be pinned by an example test.

Open
OID
0a0764…a82e:4
unsigned details (len=9)

+9 more Inspect slice

signed

[]int64 (len=7)

Fixed inputs, never chain state: a demo whose output moves with the block height cannot be pinned by an example test.

Open
OID
0a0764…a82e:6
signed details (len=7)

+7 more Inspect slice

rejected

[]struct{...} (len=4)

Fixed inputs, never chain state: a demo whose output moves with the block height cannot be pinned by an example test.

Open
OID
0a0764…a82e:8
rejected details (len=4)

+4 more Inspect slice

Render

func(path string) string

Render renders the demo for gnoweb. Render("") / Render("/") -> the vector tables and the refusals Render("/<integer>") -> encode that integer both ways

Open
OID
0a0764…a82e:13
Render details

Inspect func

renderOne

func(arg string) string

renderOne encodes a single integer supplied in the path. The argument is the visitor's text and it is shown inside a code span, so it goes through md.InlineCode and not ui.Cell: a cell escaper backslashes a backtick, and a backslash does not close a backtick inside a span. Only a fence wider than anything in the argument does, which is what md.InlineCode picks.

Open
OID
0a0764…a82e:15
renderOne details

Inspect func

hex

func(s string) string

hex renders a byte string as lowercase hex pairs. Presentation only: the library deals in bytes and says nothing about how they are shown.

Open
OID
0a0764…a82e:16
hex details

Inspect func

parseArg

func(path string) string

parseArg takes the one routing slash off and nothing else. It does not cut at a later slash and it does not trim: a page that offers to encode what the caller typed either encodes that string or says it refused it, and never quietly substitutes a shorter or tidier one.

Open
OID
0a0764…a82e:17
parseArg details

Inspect func
unsigned : []uint64 (len=9) Inspect
signed : []int64 (len=7) Inspect
rejected : []struct{...} (len=4) Inspect
Render : func(path string) string Inspect
renderOne : func(arg string) string Inspect
hex : func(s string) string Inspect
parseArg : func(path string) string Inspect