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-dms3
Commits
569268c6
Commit
569268c6
authored
Sep 19, 2014
by
Juan Batiz-Benet
Committed by
Brian Tiger Chow
Sep 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peer.DecodePrettyID
parent
d0401047
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
peer/peer.go
peer/peer.go
+5
-0
No files found.
peer/peer.go
View file @
569268c6
...
...
@@ -26,6 +26,11 @@ func (id ID) Pretty() string {
return
b58
.
Encode
(
id
)
}
// DecodePrettyID returns a b58-encoded string of the ID
func
DecodePrettyID
(
s
string
)
ID
{
return
b58
.
Decode
(
s
)
}
// Map maps Key (string) : *Peer (slices are not comparable).
type
Map
map
[
u
.
Key
]
*
Peer
...
...
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