-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: gfanton <[email protected]>
- Loading branch information
Showing
5 changed files
with
83 additions
and
31 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
examples/gno.land/r/demo/showcase/showcase_cmd_filetest.gno
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package main | ||
|
||
import ( | ||
"gno.land/r/demo/showcase" | ||
) | ||
|
||
func main() { | ||
println(showcase.Render("p-avl/Store-Example")) | ||
} | ||
|
||
// Output: | ||
// # Store Example | ||
// | ||
// | ||
// --- | ||
// | ||
// XXX: show how data is stored in an avl.Tree | ||
// | ||
// | ||
// --- | ||
// | ||
// [[Back]](/r/demo/showcase:p-avl) |
28 changes: 28 additions & 0 deletions
28
examples/gno.land/r/demo/showcase/showcase_home_filetest.gno
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package main | ||
|
||
import ( | ||
"gno.land/r/demo/showcase" | ||
) | ||
|
||
func main() { | ||
println(showcase.Render("")) | ||
} | ||
|
||
// Output: | ||
// # Showcase | ||
// | ||
// | ||
// Package showcase provides a framework for creating small modules that showcase numerous details and expose various usages. | ||
// | ||
// | ||
// | ||
// The primary goal is to facilitate easy demonstration and exploration of small features. | ||
// Modules self-register, expose commands, and demonstrate different aspects. | ||
// This framework encourages experimentation and creativity, allowing developers to easily add new modules while keeping the main files untouched. | ||
// | ||
// - [p/avl](/r/demo/showcase:p-avl) | ||
// - [Store Example](/r/demo/showcase:p-avl/Store-Example) | ||
// - [p/bf](/r/demo/showcase:p-bf) | ||
// - [Example](/r/demo/showcase:p-bf/Example) | ||
// - [p/svg](/r/demo/showcase:p-svg) | ||
// - [Example](/r/demo/showcase:p-svg/Example) |
23 changes: 23 additions & 0 deletions
23
examples/gno.land/r/demo/showcase/showcase_module_filetest.gno
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package main | ||
|
||
import ( | ||
"gno.land/r/demo/showcase" | ||
) | ||
|
||
func main() { | ||
println(showcase.Render("p-avl")) | ||
} | ||
|
||
// Output: | ||
// # p/avl | ||
// | ||
// | ||
// Helper to store data in an avl.Tree | ||
// | ||
// - [Store Example](/r/demo/showcase:p-avl/Store-Example) | ||
// | ||
// | ||
// | ||
// --- | ||
// | ||
// [[Back]](/r/demo/showcase:) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters