PathrockNetwork Gno Explorer
HomeBlocksTransactionsRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/r/moul/sapin/v0

Realm
Open in gnoweb ↗

Overview

Kind
Realm (renderable)
Name
v0
Namespace
moul / sapin
Files
4 (README)(gnomod.toml)
Exported functions
2
Module
gno.land/r/moul/sapin/v0
gno
0.9

Files (4)

  • README.mdmarkdown
  • gnomod.tomltoml
  • render.gnogno
  • sapin.gnogno
render.gnogno
1
package sapin
2
3import "strconv"
4
5const defaultSize int = 3
6
7func Render(path string) string {
8 size := defaultSize
9
10 if path != "" {
11 var err error
12 size, err = strconv.Atoi(path)
13 if err != nil {
14 panic(err)
15 }
16 }
17
18 sapin := Sapin(size)
19 output := "```\n" + sapin + "```\n"
20 return output
21}
22

Functions

  • Render(path string) string

  • Sapin(size int) string

Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.

Rendered

RenderedRawgnoweb ↗

vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.