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-cmds
Commits
2cc804ec
Commit
2cc804ec
authored
Oct 21, 2014
by
Matt Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands: Added Request#SetStream
parent
addad78b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
request.go
request.go
+6
-0
No files found.
request.go
View file @
2cc804ec
...
...
@@ -16,6 +16,7 @@ type Request interface {
SetOption
(
name
string
,
val
interface
{})
Arguments
()
[]
string
Stream
()
io
.
Reader
SetStream
(
io
.
Reader
)
ConvertOptions
(
options
map
[
string
]
Option
)
error
}
...
...
@@ -53,6 +54,11 @@ func (r *request) Stream() io.Reader {
return
r
.
in
}
// SetStream sets the value of the input stream Reader
func
(
r
*
request
)
SetStream
(
in
io
.
Reader
)
{
r
.
in
=
in
}
type
converter
func
(
string
)
(
interface
{},
error
)
var
converters
=
map
[
reflect
.
Kind
]
converter
{
...
...
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