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

Method Array

encoding/xml/value.go:233–235  ·  view source on GitHub ↗

Array returns an array encoder. By default, the members of array are wrapped with ` ` element tag. If value is marked as flattened, the start element is used to wrap the members instead of the ` ` element.

()

Source from the content-addressed store, hash-verified

231// If value is marked as flattened, the start element is used to wrap the members instead of
232// the `<member>` element.
233func (xv Value) Array() *Array {
234 return newArray(xv.w, xv.scratch, arrayMemberWrapper, xv.startElement, xv.isFlattened)
235}
236
237/*
238ArrayWithCustomName returns an array encoder.

Callers 6

TestEncodeListStringFunction · 0.45
TestEncodeListFlattenFunction · 0.45
TestEncodeListShapeFunction · 0.45
encodeZeroValueMethod · 0.45
encodeSliceMethod · 0.45

Implementers 3

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

Calls 1

newArrayFunction · 0.70

Tested by 4

TestEncodeListStringFunction · 0.36
TestEncodeListFlattenFunction · 0.36
TestEncodeListShapeFunction · 0.36