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

hexNibble

func(b uint8) int

hexNibble decodes a single hex digit, returning -1 if invalid.

Open
OID
02b5ad…2920:3
hexNibble details

Inspect func

percentDecode

func(s string) string

percentDecode turns "%20"/"+" style path escapes back into readable text so gnoweb links with spaces or punctuation round-trip nicely. Invalid escapes are left verbatim.

Open
OID
02b5ad…2920:5
percentDecode details

Inspect func

Render

func(path string) string

Render is the gnoweb entry point (not a crossing call). Render("") -> explanation + a worked example Render("/Hello, Gno!") -> the input and its ROT13 Render("/caesar/3/attack") -> a Caesar shift of 3 applied to "attack"

Open
OID
02b5ad…2920:6
Render details

Inspect func

renderRot13

func(text string) string
Open
OID
02b5ad…2920:8
renderRot13 details

Inspect func

renderCaesar

func(text string, shift int) string
Open
OID
02b5ad…2920:9
renderCaesar details

Inspect func
hexNibble : func(b uint8) int Inspect
percentDecode : func(s string) string Inspect
Render : func(path string) string Inspect
renderRoot : func() string Inspect
renderRot13 : func(text string) string Inspect
renderCaesar : func(text string, shift int) string Inspect