Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f69fedd3a | ||
|
|
595cace68a | ||
|
|
167239b405 |
@@ -1 +1 @@
|
||||
0.1.0: QmfSc2xehWmWLnwwYR91Y8QF4xdASypTFVknutoKQS3GHp
|
||||
0.5.0: QmcW7CcRA5kMdqNBRpif7e8y9yvVRmJG1uurMvea8TY2SM
|
||||
|
||||
10
cid.go
10
cid.go
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user