Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotACommand = errors.New("failed to parse first parameter as a command")
)
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter struct { Raw string // contains filtered or unexported fields }
func ParseParameter ¶
func (*Parameter) Type ¶
func (p *Parameter) Type() ParameterType
type ParameterType ¶
type ParameterType int64
const ( ParamTypeUnknown ParameterType = iota ParamTypeString ParamTypeInteger ParamTypeFloat ParamTypeUserID )
type ParsedCommand ¶
func ParseCommand ¶
func ParseCommand(raw string) (*ParsedCommand, error)
Click to show internal directories.
Click to hide internal directories.