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

polls state

Back to all declarations

option

type

Value

polls.option

question

string

Value

"What's your favorite gno.land feature?"

voters

v0.Tree

// address string -> struct{}

Open
OID
075d1b…0c67:6
voters details

Inspect ref

Vote

func(i int)

Vote casts a vote for the option at index i. Each address may vote once. EOA-only — MsgRun callers are rejected.

Open
OID
075d1b…0c67:9
Vote details

Inspect func

Render

func(path string) string

Render shows the poll question, options, and current vote tally.

Open
OID
075d1b…0c67:10
Render details

Inspect func
option : type =polls.option
question : string ="What's your favorite gno.land feature?"
options : []*polls.option (len=4) Inspect
voters : v0.Tree Inspect
init.4 : func() Inspect
Vote : func(i int) Inspect
Render : func(path string) string Inspect