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
ld
go-ld-prime
Commits
45e57ad5
Commit
45e57ad5
authored
Jan 08, 2019
by
Eric Myhre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fluent.Node was missing a Kind accessor.
Signed-off-by:
Eric Myhre
<
hash@exultant.us
>
parent
919e159c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
fluent/fluentNode.go
fluent/fluentNode.go
+7
-0
No files found.
fluent/fluentNode.go
View file @
45e57ad5
...
...
@@ -15,6 +15,7 @@ import (
// Any of the terminal scalar-returning methods will panic if an error is stored.
// (The fluent.Recover function can be used to nicely gather these panics.)
type
Node
interface
{
Kind
()
ipld
.
ReprKind
TraverseField
(
path
string
)
Node
TraverseIndex
(
idx
int
)
Node
IsNull
()
bool
...
...
@@ -47,6 +48,12 @@ func (e Error) Error() string {
func
(
n
node
)
GetError
()
error
{
return
n
.
err
}
func
(
n
node
)
Kind
()
ipld
.
ReprKind
{
if
n
.
err
!=
nil
{
panic
(
Error
{
n
.
err
})
}
return
n
.
n
.
Kind
()
}
func
(
n
node
)
TraverseField
(
path
string
)
Node
{
if
n
.
err
!=
nil
{
return
n
...
...
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