README ¶ Go Text Protocol This package holds an engine that implements part of the Go Text Protocol. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func StandardLib() map[string]Command type Command type Engine func New(g game.State, name, version string, known map[string]Command) *Engine func (e *Engine) Start() (input, output chan string) func (e *Engine) State() game.State Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func StandardLib ¶ func StandardLib() map[string]Command Types ¶ type Command ¶ type Command interface { Do(id int, args []string, e *Engine) (int, string, error) } type Engine ¶ type Engine struct { Generate func(g game.State) game.PlayerMove New func(m, n int) game.State // contains filtered or unexported fields } func New ¶ func New(g game.State, name, version string, known map[string]Command) *Engine func (*Engine) Start ¶ func (e *Engine) Start() (input, output chan string) func (*Engine) State ¶ func (e *Engine) State() game.State Source Files ¶ View all Source files command.go gtp.go Click to show internal directories. Click to hide internal directories.