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

Function NewDecoder

document/json/json.go:17–27  ·  view source on GitHub ↗

NewDecoder returns a Decoder for deserializing Smithy documents for JSON based protocols.

(optFns ...func(*DecoderOptions))

Source from the content-addressed store, hash-verified

15
16// NewDecoder returns a Decoder for deserializing Smithy documents for JSON based protocols.
17func NewDecoder(optFns ...func(*DecoderOptions)) *Decoder {
18 o := DecoderOptions{}
19
20 for _, fn := range optFns {
21 fn(&o)
22 }
23
24 return &Decoder{
25 options: o,
26 }
27}

Callers 3

TestNoSerdeFunction · 0.92
testDecodeJSONInterfaceFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestNoSerdeFunction · 0.74
testDecodeJSONInterfaceFunction · 0.74