Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f69fedd3a | ||
|
|
595cace68a | ||
|
|
167239b405 | ||
|
|
8522370eab |
@@ -1 +1 @@
|
||||
0.0.0: QmWzxM6XsNv1GoLs4dpQBay2NdMSWXRTFKmZwSHcsxg8ys
|
||||
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,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"author": "whyrusleeping",
|
||||
"bugs": {
|
||||
"url": "https://github.com/multiformats/go-cid"
|
||||
"url": "https://github.com/ipfs/go-cid"
|
||||
},
|
||||
"gx": {
|
||||
"dvcsimport": "github.com/multiformats/go-cid"
|
||||
"dvcsimport": "github.com/ipfs/go-cid"
|
||||
},
|
||||
"gxDependencies": [
|
||||
{
|
||||
@@ -24,5 +24,7 @@
|
||||
"language": "go",
|
||||
"license": "",
|
||||
"name": "go-cid",
|
||||
"version": "0.0.0"
|
||||
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
|
||||
"version": "0.5.0"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user