hexNibble
func(b uint8) inthexNibble decodes a single hex digit, returning -1 if invalid.
- OID
- 07d997…d619: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
- 07d997…d619: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
- 07d997…d619:6
Render details
renderRoot
func() string- OID
- 07d997…d619:7
renderRoot details
renderRot13
func(text string) string- OID
- 07d997…d619:8
renderRot13 details
renderCaesar
func(text string, shift int) string- OID
- 07d997…d619:9