commands: go fmt
Juan Batiz-Benet committed
Oct 21, 2014 at 16:29 UTC
d464e3d143ee4d56cfad9849b7392834bb0b0a3d
2 files changed
+5
-5
commands/request.go
+2
-2
@@ -2,9 +2,9 @@ package commands
2
3
import (
4
"fmt"
5
+ "io"
6
"reflect"
7
"strconv"
7
- "io"
8
)
9
10
type optMap map[string]interface{}
@@ -24,7 +24,7 @@ type request struct {
24
path []string
25
options optMap
26
arguments []string
27
- in io.Reader
27
+ in io.Reader
28
}
29
30
// Path returns the command path of this request
commands/response.go
+3
-3
@@ -4,8 +4,8 @@ import (
4
"encoding/json"
5
"encoding/xml"
6
"fmt"
7
+ "io"
8
"strings"
8
- "io"
9
)
10
11
// ErrorType signfies a category of errors
@@ -69,7 +69,7 @@ type response struct {
69
req Request
70
err *Error
71
value interface{}
72
- out io.Writer
72
+ out io.Writer
73
}
74
75
func (r *response) Request() Request {
@@ -85,7 +85,7 @@ func (r *response) SetValue(v interface{}) {
85
}
86
87
func (r *response) Stream() io.Writer {
88
- return r.out
88
+ return r.out
89
}
90
91
func (r *response) Error() error {