Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNilConfig is returned if the provided config is nil. ErrNilConfig = errors.New("config cannot be nil") // ErrNilInput is returned if the config.Input value is nil. ErrNilInput = errors.New("config.Input cannot be nil") // ErrNilOutput is returned if the config.Output value is nil. ErrNilOutput = errors.New("config.Output cannot be nil") // ErrNilContext is returned if the ctx provided to start is nil. ErrNilContext = errors.New("ctx cannot be nil") // ErrNilCancelF is returned if the cancel function provided to start is nil. ErrNilCancelF = errors.New("cancel cannot be nil") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Input is an input io.Reader (os.Stdin for example). Input io.Reader // Output is an output io.Writer (os.Stdout for example). Output io.Writer // CmdPrefix is the prefix used for client commands, by default this // is `/`. CmdPrefix string }
Config houses non-character configuration options.
Click to show internal directories.
Click to hide internal directories.