提交 d1595ce3 作者: Matt Bell 提交者: Juan Batiz-Benet

commands: Added basic methods to Request

上级 df034c9c
...@@ -3,18 +3,20 @@ package commands ...@@ -3,18 +3,20 @@ package commands
// Request represents a call to a command from a consumer // Request represents a call to a command from a consumer
type Request struct { type Request struct {
options map[string]interface{} options map[string]interface{}
arguments []string
} }
/*func (r *Request) Option(name string) interface{} { func (r *Request) Option(name string) interface{} {
return r.options[name]
} }
func (r *Request) Arguments() interface{} { func (r *Request) Arguments() []string {
return r.arguments
}*/ }
func NewRequest() *Request { func NewRequest() *Request {
return &Request{ return &Request{
make(map[string]interface{}), make(map[string]interface{}),
make([]string, 0),
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论