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
249d6c3b
Commit
249d6c3b
authored
Nov 22, 2016
by
Kevin Atkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move NewSafeKey functionally into the dshelp package in go-ipfs.
parent
1e283963
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
key.go
key.go
+0
-5
No files found.
key.go
View file @
249d6c3b
...
...
@@ -7,7 +7,6 @@ import (
dsq
"github.com/ipfs/go-datastore/query"
"github.com/satori/go.uuid"
base32
"github.com/whyrusleeping/base32"
)
/*
...
...
@@ -59,10 +58,6 @@ func RawKey(s string) Key {
return
Key
{
s
}
}
func
NewSafeKey
(
s
string
)
Key
{
return
Key
{
base32
.
RawStdEncoding
.
EncodeToString
([]
byte
(
s
))}
}
// KeyWithNamespaces constructs a key out of a namespace slice.
func
KeyWithNamespaces
(
ns
[]
string
)
Key
{
return
NewKey
(
strings
.
Join
(
ns
,
"/"
))
...
...
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