func Render
Render is the gnoweb entrypoint (Markdown). Root explains the rules; any other path is treated as a sentence to translate, e.g. Render("/Hello world").
Package piglatin ports the classic "Pig Latin" translator — a staple Go beginner exercise — to an on-chain gno.land r...
Package piglatin ports the classic "Pig Latin" translator — a staple Go beginner exercise — to an on-chain gno.land realm.
Rules implemented (the standard English game):
Everything is pure strings/unicode — deterministic and reproducible on-chain.
Render is the gnoweb entrypoint (Markdown). Root explains the rules; any other path is treated as a sentence to translate, e.g. Render("/Hello world").
Translate applies Pig Latin to every word in the sentence while preserving the original whitespace between words.
TranslateToken translates a single whitespace-delimited token, preserving any punctuation glued to its edges.