All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Remove duplicate fields to avoid unnecessary struct grows. (PR #38)
- Reorder elements in structs to reduce memory. (PR #37)
- Fix to break out of endless loop. (PR #36)
- Added
IsZeroerinterface to allow custom types to report that they are not initialized. A structs field is not serialized if theomitemptystruct tag is set andIsZero()returns true. #32
- Ensure
Foldcan be called when a value is given by value, but theFolderinterface is implemented on the pointer type. #32
- Add optional support to JSON encoder to encode a NaN or Inf floating point value to null. (PR #28)
- Fix potential use after free in string and []byte conversions. (PR #21)
- Regenerate code with new stringer. (PR #9)
- Add support for custom unfolders when generating gotype.Unfolder. (PR #14, PR #15, PR #17)
- Add go.mod file
- Add Reset to gotype.Unfolder. (PR #7)
- Add SetEscapeHTML to json visitor. (PR #4)
- Add
visitors.NilVisitor. (Commit ab1cb2d)
- Replace code generator with mktmlp (github.com/urso/mktmpl). (Commit 0356386)
- Introduce custom number parser. (Commit 41308dd)
- Fix gc failures by removing region allocator for temporary objects in decoder. Decoding into
map[string]XwithXbeing a custom go struct will require an extra alloc by now. (Commit 9b12176) - Fix invalid cast on pointer math. (Commit ea18344)
- Add struct tag option ",omitempty".
- Add StringConvVisitor converting all primitive values to strings.
- Move and export object visitor into visitors package
- Fix invalid pointer indirections in struct to array/map.