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

soundexdemo/v0 package

Overview

Package soundexdemo is a small gnoweb demo of the Soundex phonetic algorithm provided by the p/moul/x/daily/soundex(/p/moul/x/daily/soundex/v0) library: it groups a small name list by phonetic key so the "sounds alike" clusters are visible.

It contains no phonetic logic of its own. Stateless, so Render is deterministic — names are grouped in first-seen order, never by iterating a map.

Function

Render

func Render(path string) string

Render renders the demo for gnoweb.

Example
1Render("")       / Render("/") -> the name table + clusters
2Render("/<name>")              -> that name's key

Param

Command

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

Result