mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-03 21:08:17 +08:00
commands: go fmt
This commit is contained in:

committed by
Matt Bell

parent
dd81bf630f
commit
d464e3d143
@ -2,9 +2,9 @@ package commands
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io"
|
||||||
"reflect"
|
"reflect"
|
||||||
"strconv"
|
"strconv"
|
||||||
"io"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type optMap map[string]interface{}
|
type optMap map[string]interface{}
|
||||||
@ -24,7 +24,7 @@ type request struct {
|
|||||||
path []string
|
path []string
|
||||||
options optMap
|
options optMap
|
||||||
arguments []string
|
arguments []string
|
||||||
in io.Reader
|
in io.Reader
|
||||||
}
|
}
|
||||||
|
|
||||||
// Path returns the command path of this request
|
// Path returns the command path of this request
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io"
|
||||||
"strings"
|
"strings"
|
||||||
"io"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// ErrorType signfies a category of errors
|
// ErrorType signfies a category of errors
|
||||||
@ -69,7 +69,7 @@ type response struct {
|
|||||||
req Request
|
req Request
|
||||||
err *Error
|
err *Error
|
||||||
value interface{}
|
value interface{}
|
||||||
out io.Writer
|
out io.Writer
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *response) Request() Request {
|
func (r *response) Request() Request {
|
||||||
@ -85,7 +85,7 @@ func (r *response) SetValue(v interface{}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *response) Stream() io.Writer {
|
func (r *response) Stream() io.Writer {
|
||||||
return r.out
|
return r.out
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *response) Error() error {
|
func (r *response) Error() error {
|
||||||
|
Reference in New Issue
Block a user