Skip to content Search Apps Documentation Source Content Run Reset Eval Playground 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.

myersdiffdemo/v0 package

Overview

Package myersdiffdemo is a small gnoweb demo of the p/moul/x/daily/myersdiff(/p/moul/x/daily/myersdiff/v0) library: four fixed document pairs, each showing one behaviour worth knowing before using it in a realm.

It contains no diff logic of its own. Every line of every diff below is computed by the library at render time, so a change in the algorithm shows up here as a diff rather than as prose.

Stateless and fixed-input, so Render is deterministic and pinnable.

untrusted-render: no caller string reaches the page. The path selects a scenario by exact match against the table below, and the only other segment is parsed as an integer and clamped, so an unknown path renders the index instead of echoing anything.

Function

Render

func Render(path string) string
Ask AI Claude ChatGPT

Render implements the gnoweb view.

  • "" or "/" : the index, with every scenario summarized.
  • "/<key>" : one scenario at the default context width.
  • "/<key>/<context>" : the same, with 0 to 6 lines of context.

Param

Command

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

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/daily/myersdiffdemo/v0, for example a function call with arguments.