hexNibble
func(b uint8) inthexNibble decodes a single hex digit, returning -1 if invalid.
- OID
- 02b5ad…2920:3
hexNibble details
percentDecode
func(s string) stringpercentDecode turns "%20"/"+" style path escapes back into readable text so gnoweb links with spaces or punctuation round-trip nicely. Invalid escapes are left verbatim.
- OID
- 02b5ad…2920:5
percentDecode details
Render
func(path string) stringRender 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"
- OID
- 02b5ad…2920:6
Render details
renderRoot
func() string- OID
- 02b5ad…2920:7
renderRoot details
renderRot13
func(text string) string- OID
- 02b5ad…2920:8
renderRot13 details
renderCaesar
func(text string, shift int) string- OID
- 02b5ad…2920:9