Skip to content

Commit

Permalink
Avoid wasted memory allocation on SOAP calls
Browse files Browse the repository at this point in the history
  • Loading branch information
fiorix committed Mar 22, 2016
1 parent 7bfdb18 commit b7f311f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wsdlgo/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ func (ge *goEncoder) writeSOAPFunc(w io.Writer, op *wsdl.Operation, in, out, ret
in[0] = renameParam(in[0], "α")
out[0] = renameParam(out[0], "β")
typ := strings.SplitN(out[0], " ", 2)
if strings.HasPrefix(ret[0], "&") {
ret[0] = "nil"
}
soapFuncT.Execute(w, &struct {
Name string
Input string
Expand Down

0 comments on commit b7f311f

Please sign in to comment.