maxGen
untyped bigintmaxGen clamps Generate / Render so output stays bounded.
Value
(200 <untyped> bigint)
mc
*v1.Chainmc is the single on-chain corpus, seeded at deploy time.
- OID
- 022919…d3c4:4
mc details
init.2
func()- OID
- 022919…d3c4:8
init.2 details
seedFor
func() uint64seedFor 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.
- OID
- 022919…d3c4:10
seedFor details
Feed
func(text string) stringFeed appends text to the on-chain corpus, extending the Markov chain. Any caller may enrich the corpus — this is the open-membership demo model.
- OID
- 022919…d3c4:11
Feed details
Generate
func(nWords int) stringGenerate babbles up to nWords of Markov text from the current corpus, seeded deterministically by the chain height. Read-only.
- OID
- 022919…d3c4:12
Generate details
Stats
func() (int, int)Stats returns (totalWords, prefixCount) for the current corpus.
- OID
- 022919…d3c4:13
Stats details
parseN
func(path string) intparseN pulls a trailing positive integer out of a Render path such as "/40" or "gen/40"; it returns 0 when there is none.
- OID
- 022919…d3c4:14
parseN details
Render
func(path string) stringRender shows a freshly generated sample plus corpus stats. The path may carry a word count, e.g. Render("/60").
- OID
- 022919…d3c4:15