Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-datastore
Commits
be95ea80
Commit
be95ea80
authored
Jul 12, 2018
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch to google's uuid library
parent
2dc06227
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
key.go
key.go
+2
-2
package.json
package.json
+6
-6
No files found.
key.go
View file @
be95ea80
...
...
@@ -7,7 +7,7 @@ import (
dsq
"github.com/ipfs/go-datastore/query"
"github.com/
satori/go.
uuid"
"github.com/
google/
uuid"
)
/*
...
...
@@ -254,7 +254,7 @@ func (k *Key) UnmarshalJSON(data []byte) error {
// RandomKey()
// NewKey("/f98719ea086343f7b71f32ea9d9d521d")
func
RandomKey
()
Key
{
return
NewKey
(
strings
.
Replace
(
uuid
.
Must
(
uuid
.
NewV4
()
)
.
String
(),
"-"
,
""
,
-
1
))
return
NewKey
(
strings
.
Replace
(
uuid
.
New
(
)
.
String
(),
"-"
,
""
,
-
1
))
}
/*
...
...
package.json
View file @
be95ea80
...
...
@@ -7,12 +7,6 @@
"dvcsimport"
:
"github.com/ipfs/go-datastore"
},
"gxDependencies"
:
[
{
"author"
:
"satori"
,
"hash"
:
"QmcBWojPoNh4qm7zvv4qiepvCnnc7ALS9qcp7TNwwxT1gT"
,
"name"
:
"go.uuid"
,
"version"
:
"1.1.0"
},
{
"author"
:
"whyrusleeping"
,
"hash"
:
"QmSF8fPo3jgVBAy8fpdjjYqgG87dkJgUprRBHRd2tmfgpP"
,
...
...
@@ -30,6 +24,12 @@
"hash"
:
"QmRJVNatYJwTAHgdSM1Xef9QVQ1Ch3XHdmcrykjP5Y4soL"
,
"name"
:
"go-ipfs-delay"
,
"version"
:
"0.0.1"
},
{
"author"
:
"google"
,
"hash"
:
"QmSSeQqc5QeuefkaM6JFV5tSF9knLUkXKVhW1eYRiqe72W"
,
"name"
:
"uuid"
,
"version"
:
"0.1.0"
}
],
"gxVersion"
:
"0.7.0"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment