Skip to content

Releases: livingsilver94/redmap

Nil-pointers fixes

26 Jan 11:14
Compare
Choose a tag to compare

v1.1.1 Fixes marshaling and unmarshaling pointer fields with nil value. Marshaling was straight panicking, while unmarshaling was setting zero-values when unwanted (i.e., omitempty was not specified).

Now redmap marshals nil-pointers with the underlying type's zero value. While unmarshaling, redmap sets the underlying type's zero value to pointer fields with no key found in the input map, unless omitempty is specified. In that case, the pointer field is left with the nil value.

Custom interface

25 Jan 11:39
Compare
Choose a tag to compare

Added StringMapMarshaler and StringMapUnmarshaler to allow to customize how a struct or a non-struct type is converted into and from a map of strings.

Initial release

01 Nov 15:31
Compare
Choose a tag to compare

Basic functionality is implemented, with a decent test coverage. Expect more features coming in the following months.