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

render_example_test.gno

1.02 Kb · 24 lines
 1package toolbox
 2
 3// ExampleRender pins the directory page. The catalog is compiled in, so this
 4// output changes only when a tool is added or re-described, which is exactly
 5// when a reviewer should see the diff.
 6func ExampleRender() {
 7	print(Render(""))
 8	// Output:
 9	// # Toolbox
10	//
11	// Small utilities on gno.land. Each one is its own realm, composing contracts that are already on chain and showing the answer as a page instead of as a query you have to compose.
12	//
13	// | Tool | What it does | Tags |
14	// | --- | --- | --- |
15	// | [Usernames](/r/moul/toolbox/usernames) | Resolve a gno\.land username to an address, or an address to a username\. | identity, read |
16	//
17	// Tags: [identity](/r/moul/toolbox?tag=identity) · [read](/r/moul/toolbox?tag=read)
18	//
19	// ## What a tool is
20	//
21	// - A realm at `gno.land/r/moul/toolbox/<slug>`, reachable on its own.
22	// - Read-only unless it says otherwise: a page you open, not a transaction you sign.
23	// - Composed from contracts already on chain, so the toolbox adds the view and not the data.
24}