gopkg.in/yaml.v3 Decoder for YAML deserialization. Decode() hydrates arbitrary Go types from YAML input — a deserialization sink when the YAML source is user-controlled. Package-level yaml.Unmarshal has the same properties.
.Decode().Decode()SinkDecode(v any) error
Deserializes the next YAML document into v. Sink when the underlying reader is user-controlled.
0.KnownFields()NeutralKnownFields(enable bool)
Configures the decoder to error on unknown fields. Hardening control (neutral).
| FQN | Field | |
|---|---|---|
| gopkg.in/yaml.v3.Decoder | fqns[0] | |
| *.Decoder | patterns |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
require gopkg.in/yaml.v3 v3.0.1
from codepathfinder.go_rule import GoYAMLDecoder