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

piglatindemo/v0 package

Overview

Package piglatindemo is a small gnoweb demo of the Pig Latin translator provided by the p/moul/x/daily/piglatin(/p/moul/x/daily/piglatin/v0) library: it renders the rules, a gallery of worked examples, and an interactive sentence translator.

It contains no translation logic of its own — everything comes from `piglatin.Translate` and `piglatin.TranslateToken`.

Function

Render

func Render(path string) string

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").

Param

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/moul/x/daily/piglatindemo/v0.Render()"

Result