Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Commands ¶
func Commands() map[string]CommandConstructor
Commands returns a copy of the command registry.
func RegisterNewCommand ¶
func RegisterNewCommand(name string, constructor CommandConstructor) error
RegisterNewCommand will add a command for got to handle when called.
Types ¶
type CommandConstructor ¶
CommandConstructor is the type of the function you should implement to have your command be instantiated by the main thread..
Click to show internal directories.
Click to hide internal directories.