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

0.39 Kb · 20 lines
 1package counter
 2
 3// ExampleRender pins the realm's Render output as a testable example.
 4func ExampleRender() {
 5	print(Render(""))
 6	// Output:
 7	// # Counter Club
 8	//
 9	// A shared counter anyone can Inc, Dec, or Reset. The last 20 changes are logged below.
10	//
11	// ## Current value
12	//
13	// # 0
14	//
15	// **Total changes:** 0
16	//
17	// ## Recent history
18	//
19	// _No changes yet — be the first to count!_
20}