Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

levenshteindemo/v0 package

Overview

Package levenshteindemo is a small gnoweb demo of the Levenshtein edit-distance library provided by p/moul/x/daily/levenshtein(/p/nym-moultest123/x/daily/levenshtein/v0): it renders an explanation, worked examples, and an interactive distance calculator with the full dynamic-programming table.

It contains no distance logic of its own — everything comes from `levenshtein.Distance`, `levenshtein.Matrix` and `levenshtein.Similarity`.

Function

Render

func Render(path string) string
Ask AI Claude ChatGPT

Render implements the gnoweb view.

  • "" or "/" : explanation + examples.
  • "/<a>/<b>" : distance between a and b, with the DP table.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-moultest123/x/daily/levenshteindemo/v0.Render()"

Result