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.

varintdemo/v0 package

Overview

Package varintdemo is a small gnoweb demo of the p/moul/x/daily/varint(/p/moul/x/daily/varint/v0) library: it shows what the group boundaries cost, what zigzag buys on negative numbers, and which encodings the decoder refuses.

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

Function

Render

func Render(path string) string
Ask AI Claude ChatGPT

Render renders the demo for gnoweb.

Example
1Render("") / Render("/")  -> the vector tables and the refusals
2Render("/<integer>")      -> encode that integer both ways

Param

Command

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

Result

Gno Expression Evaluator

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