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-cidutil
Commits
35c32d52
Commit
35c32d52
authored
Sep 01, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some more helper functions to ease integration into go-ipfs
parent
ce2167fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
set.go
set.go
+9
-0
No files found.
set.go
View file @
35c32d52
...
...
@@ -33,3 +33,12 @@ func (s *Set) Keys() []*Cid {
}
return
out
}
func
(
s
*
Set
)
Visit
(
c
*
Cid
)
bool
{
if
!
s
.
Has
(
c
)
{
s
.
Add
(
c
)
return
true
}
return
false
}
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