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
e5f2f56b
Commit
e5f2f56b
authored
Jan 22, 2018
by
ForrestWeston
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs for core builder NewNode method
License: MIT Signed-off-by:
ForrestWeston
<
forrest@protocol.ai
>
parent
76907bb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
core/builder.go
core/builder.go
+1
-0
No files found.
core/builder.go
View file @
e5f2f56b
...
@@ -115,6 +115,7 @@ func defaultRepo(dstore repo.Datastore) (repo.Repo, error) {
...
@@ -115,6 +115,7 @@ func defaultRepo(dstore repo.Datastore) (repo.Repo, error) {
},
nil
},
nil
}
}
// NewNode constructs and returns an IpfsNode using the given cfg.
func
NewNode
(
ctx
context
.
Context
,
cfg
*
BuildCfg
)
(
*
IpfsNode
,
error
)
{
func
NewNode
(
ctx
context
.
Context
,
cfg
*
BuildCfg
)
(
*
IpfsNode
,
error
)
{
if
cfg
==
nil
{
if
cfg
==
nil
{
cfg
=
new
(
BuildCfg
)
cfg
=
new
(
BuildCfg
)
...
...
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