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

maxGen

untyped bigint

maxGen clamps Generate / Render so output stays bounded.

Value

(200 <untyped> bigint)

mc

*v0.Chain

mc is the single on-chain corpus, seeded at deploy time.

Open
OID
0ee704…7118:4
mc details

Inspect pointer

seedFor

func() uint64

seedFor derives a Generate seed from the current chain height so the babble changes block to block yet stays reproducible for anyone querying the same height.

Open
OID
0ee704…7118:10
seedFor details

Inspect func

Feed

func(text string) string

Feed appends text to the on-chain corpus, extending the Markov chain. Any caller may enrich the corpus — this is the open-membership demo model.

Open
OID
0ee704…7118:11
Feed details

Inspect func

Generate

func(nWords int) string

Generate babbles up to nWords of Markov text from the current corpus, seeded deterministically by the chain height. Read-only.

Open
OID
0ee704…7118:12
Generate details

Inspect func

Stats

func() (int, int)

Stats returns (totalWords, prefixCount) for the current corpus.

Open
OID
0ee704…7118:13
Stats details

Inspect func

parseN

func(path string) int

parseN pulls a trailing positive integer out of a Render path such as "/40" or "gen/40"; it returns 0 when there is none.

Open
OID
0ee704…7118:14
parseN details

Inspect func

Render

func(path string) string

Render shows a freshly generated sample plus corpus stats. The path may carry a word count, e.g. Render("/60").

Open
OID
0ee704…7118:15
Render details

Inspect func
maxGen : untyped bigint =(200 <untyped> bigint)
mc : *v0.Chain Inspect
init.2 : func() Inspect
seedFor : func() uint64 Inspect
Feed : func(text string) string Inspect
Generate : func(nWords int) string Inspect
Stats : func() (int, int) Inspect
parseN : func(path string) int Inspect
Render : func(path string) string Inspect