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

rot13demo/v0 package

Overview

Package rot13demo is a small gnoweb demo of the ROT13 / Caesar cipher provided by the p/moul/x/daily/rot13(/p/moul/x/daily/rot13/v0) library: it renders an explanation, a worked ROT13 example, and interactive path-driven ROT13 and Caesar transforms.

It contains no cipher logic of its own — everything comes from `rot13.Rot13` and `rot13.Caesar`. Render reads its input straight from the gnoweb path.

Function

Render

func Render(path string) string

Render is the gnoweb entry point (not a crossing call).

Example
1Render("")                 -> explanation + a worked example
2Render("/Hello, Gno!")     -> the input and its ROT13
3Render("/caesar/3/attack") -> a Caesar shift of 3 applied to "attack"

Param

Command

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

Result