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

Method decodeNil

document/cbor/decode.go:119–124  ·  view source on GitHub ↗
(rv reflect.Value)

Source from the content-addressed store, hash-verified

117}
118
119func (d *decoder) decodeNil(rv reflect.Value) error {
120 if rv.IsValid() && rv.CanSet() {
121 rv.Set(reflect.Zero(rv.Type()))
122 }
123 return nil
124}
125
126func (d *decoder) decodeBool(v bool, rv reflect.Value) error {
127 switch rv.Kind() {

Callers 1

decodeMethod · 0.95

Calls 2

IsValidMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected