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.

v0 state

Back to all declarations

greets

int

greets counts how many times Greet has been called (persistent state).

Value

0

Greet

func(name string) string

Greet records a greeting from the caller and returns it. Crossing function: it mutates persistent state, so it takes \`cur realm\` per the gno 0.9 interrealm convention.

Open
OID
028b61…5b70:4
Greet details

Inspect func

Count

func() int

Count returns how many greetings have been recorded. Read-only.

Open
OID
028b61…5b70:6
Count details

Inspect func

Render

func(path string) string

Render is the gnoweb Markdown view.

Open
OID
028b61…5b70:7
Render details

Inspect func

itoa

func(n int) string

itoa avoids importing strconv for a single conversion in the canary.

Open
OID
028b61…5b70:8
itoa details

Inspect func
greets : int =0
Greet : func(name string) string Inspect
Count : func() int Inspect
Render : func(path string) string Inspect
itoa : func(n int) string Inspect