goccy / go-yaml

YAML support for the Go language
MIT License
1.12k stars 129 forks source link

Empty null value gets converted to "null" in token #403

Open mikefarah opened 11 months ago

mikefarah commented 11 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce

cat:

See https://play.golang.com/p/FCsVZ8eQ1J6

Expected behavior

The ast token Origin (or value) would have the string value of ""

Version Variables

Additional context I'm looking to replace yq's yaml engine with goccy!

[Updated] Fixed goplay link!