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