Documentation ¶
Overview ¶
Package markov handles markov chain generation.
This Markov chain code is taken from the "Generating arbitrary text" codewalk: http://golang.org/doc/codewalk/markov/
Minor modifications have been made to make it easier to integrate with a webserver and to save/load state
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
Chain contains a map ("chain") of prefixes to a list of suffixes. A prefix is a string of prefixLen words joined with spaces. A suffix is a single word. A prefix can have multiple suffixes.
Click to show internal directories.
Click to hide internal directories.