Compare commits

..

3 Commits

Author SHA1 Message Date
Jeromy
0f69fedd3a gx publish 0.5.0 2016-09-27 06:14:57 -07:00
Jeromy
595cace68a make cid's loggable 2016-09-27 06:14:46 -07:00
Jeromy
167239b405 gx publish 0.3.0 2016-09-27 03:43:09 -07:00
3 changed files with 14 additions and 2 deletions

View File

@@ -1 +1 @@
0.1.0: QmfSc2xehWmWLnwwYR91Y8QF4xdASypTFVknutoKQS3GHp
0.5.0: QmcW7CcRA5kMdqNBRpif7e8y9yvVRmJG1uurMvea8TY2SM

10
cid.go
View File

@@ -164,3 +164,13 @@ func (c *Cid) UnmarshalJSON(b []byte) error {
func (c *Cid) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprintf("\"%s\"", c.String())), nil
}
func (c *Cid) KeyString() string {
return string(c.Bytes())
}
func (c *Cid) Loggable() map[string]interface{} {
return map[string]interface{}{
"cid": c,
}
}

View File

@@ -24,5 +24,7 @@
"language": "go",
"license": "",
"name": "go-cid",
"version": "0.1.0"
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "0.5.0"
}