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

object put: Added plaintext marshaler

上级 b4de6cce
......@@ -221,6 +221,12 @@ Data should be in the format specified by <encoding>.
return output, nil
},
Marshalers: cmds.MarshalerMap{
cmds.Text: func(res cmds.Response) ([]byte, error) {
object := res.Output().(*Object)
return []byte(object.Hash), nil
},
},
Type: &Object{},
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论