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.63 Kb · 21 lines
 1package quotes
 2
 3// ExampleRender pins the realm's Render output as a testable example.
 4func ExampleRender() {
 5	print(Render(""))
 6	// Output:
 7	// # Quote of the Moment
 8	//
 9	// > He who is brave is free.
10	// >
11	// > — the board (#3)
12	//
13	// _Featured pick rotates with block height 123 — index 3 of 4._
14	//
15	// ## All quotes (4)
16	//
17	// - **#0** The unexamined life is not worth living. — _the board_
18	// - **#1** We suffer more often in imagination than in reality. — _the board_
19	// - **#2** Waste no more time arguing about what a good person should be. Be one. — _the board_
20	// - **#3** He who is brave is free. — _the board_
21}