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

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
0e9f8b…5e14:4
Greet details

Inspect func

Count

func() int

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

Open
OID
0e9f8b…5e14:6
Count details

Inspect func

Render

func(path string) string

Render is the gnoweb Markdown view.

Open
OID
0e9f8b…5e14:7
Render details

Inspect func

itoa

func(n int) string

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

Open
OID
0e9f8b…5e14: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