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

base32demo/v0 package

Overview

Package base32demo is a small gnoweb demo of the base32 codec provided by the p/moul/x/daily/base32(/p/moul/x/daily/base32/v0) library: it shows the RFC 4648 vectors alongside Crockford, and the forgiving decodes Crockford allows.

It contains no codec logic of its own. Stateless, so Render is deterministic.

Function

Render

func Render(path string) string

Render renders the demo for gnoweb.

Example
1Render("")       / Render("/") -> the vectors + Crockford forgiveness
2Render("/<text>")              -> encode that text both ways

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/base32demo/v0.Render()"

Result