unsigned
[]uint64Fixed inputs, never chain state: a demo whose output moves with the block height cannot be pinned by an example test.
- OID
- 0a0764…a82e:4
unsigned details
signed
[]int64Fixed inputs, never chain state: a demo whose output moves with the block height cannot be pinned by an example test.
- OID
- 0a0764…a82e:6
signed details
rejected
[]struct{...}Fixed inputs, never chain state: a demo whose output moves with the block height cannot be pinned by an example test.
- OID
- 0a0764…a82e:8
rejected details
Render
func(path string) stringRender renders the demo for gnoweb. Render("") / Render("/") -> the vector tables and the refusals Render("/<integer>") -> encode that integer both ways
- OID
- 0a0764…a82e:13
Render details
renderOne
func(arg string) stringrenderOne 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.
- OID
- 0a0764…a82e:15
renderOne details
hex
func(s string) stringhex renders a byte string as lowercase hex pairs. Presentation only: the library deals in bytes and says nothing about how they are shown.
- OID
- 0a0764…a82e:16
hex details
parseArg
func(path string) stringparseArg 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.
- OID
- 0a0764…a82e:17