add omitempty to Object struct tags
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
Jeromy committed
Apr 19, 2016 at 12:48 UTC
d8f8b0976fd6aaf983c85d4f49e9376f4454acb2
1 file changed
+2
-2
core/commands/object/object.go
+2
-2
@@ -37,8 +37,8 @@ type Link struct {
37
}
38
39
type Object struct {
40
- Hash string
41
- Links []Link
40
+ Hash string `json:"Hash,omitempty"`
41
+ Links []Link `json:"Links,omitempty"`
42
}
43
44
var ObjectCmd = &cmds.Command{