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/demo/microposts/v0

Realm
Open in gnoweb ↗

Overview

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

Files (4)

  • README.mdmarkdown
  • gnomod.tomltoml
  • post.gnogno
  • realm.gnogno
post.gnogno
1
package microposts
2
3import (
4 "time"
5)
6
7type Post struct {
8 text string
9 author address
10 createdAt time.Time
11}
12
13func (p Post) String() string {
14 out := p.text + "\n"
15 out += "_" + p.createdAt.Format("02 Jan 2006, 15:04") + ", by " + p.author.String() + "_"
16 return out
17}
18

Functions

  • CreatePost(text string)

  • Render(string) 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.