Source File
unmarshal.go
Belonging Package
github.com/aws/aws-sdk-go/private/protocol/query
package query
import (
)
var UnmarshalHandler = request.NamedHandler{Name: "awssdk.query.Unmarshal", Fn: Unmarshal}
var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.query.UnmarshalMeta", Fn: UnmarshalMeta}
func ( *request.Request) {
defer .HTTPResponse.Body.Close()
if .DataFilled() {
:= xml.NewDecoder(.HTTPResponse.Body)
:= xmlutil.UnmarshalXML(.Data, , .Operation.Name+"Result")
if != nil {
.Error = awserr.NewRequestFailure(
awserr.New(request.ErrCodeSerialization, "failed decoding Query response", ),
.HTTPResponse.StatusCode,
.RequestID,
)
return
}
}
}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |