MCPcopy Create free account
hub / github.com/aws/smithy-go / NewEncoder

Function NewEncoder

encoding/xml/encoder.go:31–35  ·  view source on GitHub ↗

NewEncoder returns an XML encoder

(w writer)

Source from the content-addressed store, hash-verified

29
30// NewEncoder returns an XML encoder
31func NewEncoder(w writer) *Encoder {
32 scratch := make([]byte, 64)
33
34 return &Encoder{w: w, scratch: &scratch}
35}
36
37// String returns the string output of the XML encoder
38func (e Encoder) String() string {

Callers 15

TestEncoderFunction · 0.92
TestEncodeAttributeFunction · 0.92
TestEncodeNamespaceFunction · 0.92
TestEncodeNestedShapeFunction · 0.92
TestEncodeMapStringFunction · 0.92
TestEncodeMapFlattenFunction · 0.92
TestEncodeMapNamedFunction · 0.92
TestEncodeMapShapeFunction · 0.92
TestEncodeMapNamedShapeFunction · 0.92
TestEncodeListStringFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestEncoderFunction · 0.74
TestEncodeAttributeFunction · 0.74
TestEncodeNamespaceFunction · 0.74
TestEncodeNestedShapeFunction · 0.74
TestEncodeMapStringFunction · 0.74
TestEncodeMapFlattenFunction · 0.74
TestEncodeMapNamedFunction · 0.74
TestEncodeMapShapeFunction · 0.74
TestEncodeMapNamedShapeFunction · 0.74
TestEncodeListStringFunction · 0.74