MCPcopy
hub / github.com/go-yaml/yaml / null

Method null

decode.go:554–563  ·  view source on GitHub ↗
(out reflect.Value)

Source from the content-addressed store, hash-verified

552}
553
554func (d *decoder) null(out reflect.Value) bool {
555 if out.CanAddr() {
556 switch out.Kind() {
557 case reflect.Interface, reflect.Ptr, reflect.Map, reflect.Slice:
558 out.Set(reflect.Zero(out.Type()))
559 return true
560 }
561 }
562 return false
563}
564
565func (d *decoder) scalar(n *Node, out reflect.Value) bool {
566 var tag string

Callers 2

unmarshalMethod · 0.95
scalarMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected