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

Method ArrayWithCustomName

encoding/xml/value.go:244–246  ·  view source on GitHub ↗

* ArrayWithCustomName returns an array encoder. It takes named start element as an argument, the named start element will used to wrap xml array entries. for eg, ` entry1 ` Here `customName` named start element will be wrapped on each array member. */

(element StartElement)

Source from the content-addressed store, hash-verified

242Here `customName` named start element will be wrapped on each array member.
243*/
244func (xv Value) ArrayWithCustomName(element StartElement) *Array {
245 return newArray(xv.w, xv.scratch, element, xv.startElement, xv.isFlattened)
246}
247
248/*
249Map returns a map encoder. By default, the map entries are

Callers 3

TestEncodeListNamedFunction · 0.80
TestEncodeListNamedShapeFunction · 0.80
ExampleEncoderFunction · 0.80

Implementers 3

Tagencoding/cbor/cbor.go
Nilencoding/cbor/cbor.go
Undefinedencoding/cbor/cbor.go

Calls 1

newArrayFunction · 0.70

Tested by 3

TestEncodeListNamedFunction · 0.64
TestEncodeListNamedShapeFunction · 0.64
ExampleEncoderFunction · 0.64