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.42 Kb · 21 lines
 1package cowsaydemo
 2
 3// ExampleRender pins the realm's Render output as a gno testable example.
 4func ExampleRender() {
 5	print(Render(""))
 6	// Output:
 7	// # cowsay
 8	//
 9	// _Tip: pass a message in the path, e.g._ `/Hello, gno.land!`
10	//
11	// ```
12	//  ______
13	// < Moo! >
14	//  ------
15	//         \   ^__^
16	//          \  (oo)\_______
17	//             (__)\       )\/\
18	//                 ||----w |
19	//                 ||     ||
20	// ```
21}