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

importdemo/v0 package

Overview

Package importdemo shows a realm importing and composing packages from ANOTHER namespace — the whole point of the demo.

v2 imported gno.land/p/archive/dom, which is published on no chain we target (absent on both sapphire and pearl), so it type-checked locally but could never be deployed: `addpkg` failed with `could not import gno.land/p/archive/dom (unknown import path)`. v2 is archived (`ignore = true`); this version rebuilds the same thread-of-posts idea on foreign packages that are actually on chain — `p/nt/avl/v0` for ordered storage and `p/nt/ufmt/v0` for formatting.

Deliberately keeps no realm state: Render builds the thread on each call, so output depends only on the code and the demo is reproducible.

Function

Render

func Render(path string) string

Render renders the demo thread for gnoweb.

Param

Command

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

Result