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.

render_example_test.gno

0.44 Kb · 18 lines
 1package lottery
 2
 3// ExampleRender pins the realm's Render output as a testable example.
 4func ExampleRender() {
 5	print(Render(""))
 6	// Output:
 7	// # Lottery
 8	//
 9	// Enter the open round, then anyone can draw once it has at least two players. The winner is picked from the block height and a new round opens automatically.
10	//
11	// ## Round 1 (open)
12	//
13	// _No entrants yet. Call `Enter` to join._
14	//
15	// ## Past winners
16	//
17	// _No rounds drawn yet._
18}