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.

toposortdemo/v0 package

Overview

Package toposortdemo is a small gnoweb demo of the dependency ordering provided by the p/moul/x/daily/toposort(/p/nym-moultest123/x/daily/toposort/v0) library: it shows a build graph resolved into a safe install order, and a deliberately broken graph to show how a cycle is reported.

It contains no ordering logic of its own — the graph, the sort and the cycle detection all come from the library. Stateless and read-only, so Render is fully deterministic.

Function

Render

func Render(path string) string
Ask AI Claude ChatGPT

Render renders the demo for gnoweb.

Example
1Render("")       / Render("/") -> the build graph, resolved
2Render("/cycle")               -> the broken graph and its report

Param

Command

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

Result