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
467eb8db
Commit
467eb8db
authored
Jul 08, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs
License: MIT Signed-off-by:
Jeromy
<
why@ipfs.io
>
parent
1aeda7eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
commands/request.go
commands/request.go
+2
-0
No files found.
commands/request.go
View file @
467eb8db
...
...
@@ -211,6 +211,8 @@ func (r *request) haveVarArgsFromStdin() bool {
len
(
r
.
arguments
)
<
len
(
r
.
cmd
.
Arguments
)
}
// VarArgs can be used when you want string arguments as input
// and also want to be able to handle them in a streaming fashion
func
(
r
*
request
)
VarArgs
(
f
func
(
string
)
error
)
error
{
var
i
int
for
i
=
0
;
i
<
len
(
r
.
cmd
.
Arguments
);
i
++
{
...
...
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