Lots of small bug fixes on the encoder. Found thanks to the new Go 1.18 fuzzing support.
What's Changed
Fixed bugs
- Decode: always use UTC for +00:00 timezone by @pelletier in https://github.com/pelletier/go-toml/pull/755
- Encode: fix
LocalDateformatting by @pelletier in https://github.com/pelletier/go-toml/pull/755 - Encode: fix empty key marshaling by @pelletier in https://github.com/pelletier/go-toml/pull/755
- Encode: fix invalid quotation of
time.Timeby @pelletier in https://github.com/pelletier/go-toml/pull/755 - Encode: ensure control characters are escaped by @pelletier in https://github.com/pelletier/go-toml/pull/755
- Encode: check for invalid characters in keys by @pelletier in https://github.com/pelletier/go-toml/pull/755
- Encode: always construct map for empty array tables by @pelletier in https://github.com/pelletier/go-toml/pull/755
- Encode: don't capitalize
nanby @pelletier in https://github.com/pelletier/go-toml/pull/755 - Encode: don't capitalize
infby @pelletier in https://github.com/pelletier/go-toml/pull/755 - Encode: allow new lines in quoted keys by @pelletier in https://github.com/pelletier/go-toml/pull/755
- Encode: never emit table inside array by @pelletier in https://github.com/pelletier/go-toml/pull/755
- Encode: fix embedded interfaces by @pelletier in https://github.com/pelletier/go-toml/pull/753
Documentation
- Update benchmarks in README by @pelletier in https://github.com/pelletier/go-toml/pull/756
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.0.0-beta.7...v2.0.0-beta.8