Setter not working for non-pointer Fields?
Bug #1096149 reported by
Christian Neumann
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
goyaml |
New
|
Undecided
|
Unassigned |
Bug Description
I want to use the Setter interface to (un)marshal into custom types. I can't get this to work, and the sources/tests of goyaml won't enlighten me. Maybe it's a bug? A simillar implementation with encoding/json works fine. One of the tests (TestUnmarshalW
I attached a sample go file using both encoding/json and goyaml. I want this to work without changing the field to a pointer. But beside that, it also won't work after changing to a pointer field.
Thanks :) !
To post a comment you must log in.