Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FailureError = Xrror("command failure: %s").Out SyntaxError = Xrror("received message `%s`, but syntax was incorrect: %s").Out UnknownError = Xrror("received unknown message of type `%s`: %s").Out LengthError = Xrror("inappropriate length message: `%d : %s`, message must be longer than 1 word and shorter than 15").Out )
Functions ¶
Types ¶
type Command ¶
type Command interface { Primary() string Selector() string Opts() [][]string Raw() string Process(Data) (Response, string, error) }
func NewCommand ¶
Click to show internal directories.
Click to hide internal directories.