chore: gofmt.
This commit is contained in:
parent
e5bb4e5154
commit
15a204aa25
@ -75,8 +75,8 @@ type options struct {
|
|||||||
// Client is a SOAP client, attached to a specific SOAP endpoint.
|
// Client is a SOAP client, attached to a specific SOAP endpoint.
|
||||||
// the zero value is not usable, use NewClient() to create an instance.
|
// the zero value is not usable, use NewClient() to create an instance.
|
||||||
type Client struct {
|
type Client struct {
|
||||||
httpClient HTTPClient
|
httpClient HTTPClient
|
||||||
endpointURL string
|
endpointURL string
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new SOAP client, which will POST its requests to the
|
// New creates a new SOAP client, which will POST its requests to the
|
||||||
@ -150,7 +150,7 @@ func SetRequestAction(
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return &SOAPError{
|
return &SOAPError{
|
||||||
description: "encoding envelope",
|
description: "encoding envelope",
|
||||||
cause: err,
|
cause: err,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ func ParseResponseAction(
|
|||||||
if _, err := io.Copy(buf, resp.Body); err != nil {
|
if _, err := io.Copy(buf, resp.Body); err != nil {
|
||||||
return &SOAPError{
|
return &SOAPError{
|
||||||
description: "reading HTTP response body",
|
description: "reading HTTP response body",
|
||||||
cause: err,
|
cause: err,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,7 +188,7 @@ func ParseResponseAction(
|
|||||||
// Parsed cleanly, got SOAP fault.
|
// Parsed cleanly, got SOAP fault.
|
||||||
return &SOAPError{
|
return &SOAPError{
|
||||||
description: "SOAP fault",
|
description: "SOAP fault",
|
||||||
cause: err,
|
cause: err,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Parsing problem, provide some information for context.
|
// Parsing problem, provide some information for context.
|
||||||
|
@ -321,9 +321,9 @@ var _ SOAPValue = &Fixed14_4{}
|
|||||||
|
|
||||||
// Fixed14_4FromParts creates a Fixed14_4 from components.
|
// Fixed14_4FromParts creates a Fixed14_4 from components.
|
||||||
// Bounds:
|
// Bounds:
|
||||||
// * Both intPart and fracPart must have the same sign.
|
// - Both intPart and fracPart must have the same sign.
|
||||||
// * -1e14 < intPart < 1e14
|
// - -1e14 < intPart < 1e14
|
||||||
// * -1e4 < fracPart < 1e4
|
// - -1e4 < fracPart < 1e4
|
||||||
func Fixed14_4FromParts(intPart int64, fracPart int16) (Fixed14_4, error) {
|
func Fixed14_4FromParts(intPart int64, fracPart int16) (Fixed14_4, error) {
|
||||||
var v Fixed14_4
|
var v Fixed14_4
|
||||||
err := v.SetParts(intPart, fracPart)
|
err := v.SetParts(intPart, fracPart)
|
||||||
@ -332,9 +332,9 @@ func Fixed14_4FromParts(intPart int64, fracPart int16) (Fixed14_4, error) {
|
|||||||
|
|
||||||
// SetFromParts sets the value based on the integer component and the fractional component.
|
// SetFromParts sets the value based on the integer component and the fractional component.
|
||||||
// Bounds:
|
// Bounds:
|
||||||
// * Both intPart and fracPart must have the same sign.
|
// - Both intPart and fracPart must have the same sign.
|
||||||
// * -1e14 < intPart < 1e14
|
// - -1e14 < intPart < 1e14
|
||||||
// * -1e4 < fracPart < 1e4
|
// - -1e4 < fracPart < 1e4
|
||||||
func (v *Fixed14_4) SetParts(intPart int64, fracPart int16) error {
|
func (v *Fixed14_4) SetParts(intPart int64, fracPart int16) error {
|
||||||
if (intPart < 0) != (fracPart < 0) {
|
if (intPart < 0) != (fracPart < 0) {
|
||||||
return fmt.Errorf("want intPart and fracPart with same sign, got %d and %d",
|
return fmt.Errorf("want intPart and fracPart with same sign, got %d and %d",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user