Marshaling a nil slice outputs an empty sequence, not null
Bug #1231941 reported by
Nate Finch
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
goyaml |
New
|
Undecided
|
Unassigned |
Bug Description
Marshaling a nil slice writes an empty sequence to the yaml output, instead of null, which means you can't reliably round trip a slice and get out what you put in, if you care about the difference between nil and empty.
To post a comment you must log in.