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-ld-format
Commits
95595c1a
Commit
95595c1a
authored
May 25, 2020
by
Hlib
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add GetIPLDNode() method to NavigableNode
parent
ea9b6625
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
navipld.go
navipld.go
+1
-1
walker.go
walker.go
+3
-0
No files found.
navipld.go
View file @
95595c1a
...
...
@@ -134,7 +134,7 @@ func (nn *NavigableIPLDNode) ChildTotal() uint {
// function.
// TODO: Check for errors to avoid a panic?
func
ExtractIPLDNode
(
node
NavigableNode
)
Node
{
return
node
.
(
*
NavigableIPLDNode
)
.
GetIPLDNode
()
return
node
.
GetIPLDNode
()
}
// TODO: `Cleanup` is not supported at the moment in the `Walker`.
...
...
walker.go
View file @
95595c1a
...
...
@@ -116,6 +116,9 @@ type NavigableNode interface {
// ChildTotal returns the number of children of the `ActiveNode`.
ChildTotal
()
uint
// GetIPLDNode returns actual IPLD Node
GetIPLDNode
()
Node
// TODO: Evaluate providing the `Cleanup` and `Reset` methods.
// Cleanup is an optional method that is called by the `Walker` when
...
...
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