提交 09311d4b 作者: Matt Bell 提交者: Juan Batiz-Benet

commands: Added 'NewEmptyRequest'

上级 968ec344
......@@ -96,6 +96,10 @@ func (r *Request) convertOptions(options map[string]Option) error {
return nil
}
func NewEmptyRequest() *Request {
return NewRequest(nil, nil, nil)
}
func NewRequest(path []string, opts map[string]interface{}, args []string) *Request {
if path == nil {
path = make([]string, 0)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论