go-structform

Go Encoding, Decoding, Transcoding

APACHE-2.0 License

Stars
15
Committers
9
go-structform - v0.0.12 Latest Release

Published by leehinman 2 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/elastic/go-structform/compare/v0.0.11...v0.0.12

go-structform - 0.0.11

Published by andrewkroh 3 months ago

Fixed

Full Changelog: https://github.com/elastic/go-structform/compare/v0.0.10...v0.0.11

go-structform - 0.0.9

Published by urso over 3 years ago

Added

  • Added IsZeroer interface to allow custom types to report that they are not initialized. A structs field is not serialized if the omitempty struct tag is set and IsZero() returns true. #32

Fixed

  • Ensure Fold can be called when a value is given by value, but the Folder interface is implemented on the pointer type. #32
go-structform - 0.0.8

Published by urso over 3 years ago

Added

  • Add optional support to JSON encoder to encode a NaN or Inf floating point value to null. (PR #28)
go-structform - 0.0.7

Published by urso over 4 years ago

Fixed

  • Fix potential use after free in string and []byte conversions. (PR #21)
go-structform - 0.0.6

Published by urso over 5 years ago

Added

  • 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
go-structform - 0.0.5

Published by urso about 6 years ago

Added

  • Add Reset to gotype.Unfolder. (PR #7)
go-structform - 0.0.4

Published by urso over 6 years ago

Added

  • Add SetEscapeHTML to json visitor. (PR #4)
go-structform - 0.0.3

Published by urso over 6 years ago

Added

  • Add visitors.NilVisitor. (Commit ab1cb2d)

Changed

  • Replace code generator with mktmlp (github.com/urso/mktmpl). (Commit 0356386)
  • Introduce custom number parser. (Commit 41308dd)

Fixed

  • Fix gc failures by removing region allocator for temporary objects in decoder. Decoding into map[string]X with X being a custom go struct will require an extra alloc by now. (Commit 9b12176)
  • Fix invalid cast on pointer math. (Commit ea18344)
go-structform - preview 2

Published by urso almost 7 years ago

Added

  • Add struct tag option ",omitempty".
  • Add StringConvVisitor converting all primitive values to strings.
  • Move and export object visitor into visitors package

Fixed

  • Fix invalid pointer indirections in struct to array/map.
go-structform - preview

Published by urso over 7 years ago