Releases: pelletier/go-toml
Releases · pelletier/go-toml
v1.2.0
v1.1.0
What's new
- Comment annotation for Marshal #185
- Support single-quoted keys #193
- Add Encoder / Decoder capabilities #192
- Encode can encode arrays on multiple lines #203
- Support for hexadecimal, octal, and binary literals #205
- Unmarshal into custom number types and check for overflows #209
- Support for special float values (inf and nan) #210
Fixed Bugs
- Unmarshal should report a type mismatch as an error #196
- Actually show the error message from an Error token #208
All changes: v1.0.1...v1.1.0
v1.0.1
v1.0.0
Breaking changes
- Renamed
TomlTree
toTree
. #159 - Query support moved to its own sub-package, with slight API changes. #152
What's new
- Reflection-based Marshaling / Unmarshaling. #149
- Use
String()
method when available when constructing aTree
from a map. #142 - Several performance improvements.
Fixed Bugs
- Support lower-case unicode sequences. #140
- Fix error message for
TestMissingFile
on Windows. #148 - Fix incorrect slice type in
TreeFromMap
. #145 WriteTo
andtomll
now emit empty tables to match the TOML specification. #169
All changes: v0.5.0...v1.0.0
v0.5.0
What's new
TomlTree.ToString()
now returns an error instead of panicking. #117- Overhauled TOML encoding logic, more robust and stable. #133
- New
TomlTree.WriteTo(io.Writer) (int64, error)
method. It encodes a tree to TOML and writes it to the givenWriter
. #133 - Go 1.8 support. #129
Fixed Bugs
- Fix bug that produced an error when a comment is after a value. #122
- Fix syntax errors in the documentation. #126
- Fix compatibility with go-buffruneio v0.2.0. #131
All changes: v0.4.0...v0.5.0
v0.4.0
What's new
- New tool:
tomljson
. It provides a CLI tool similar totomll
to read TOML files and output their JSON representation. #85 - Queries now support
\U
notation. #88
Fixed Bugs
- Fix
ToMap
conversion of arrays of tables. #83 - Empty quoted keys
""
are now valid. #97 - Fix conversion of all numeric types. #102
- Fix conversion of
map[string][string]
andmap[interface{}]interface{}
. #103 - Fix incorrect wrapping of
[]*TomlTree
in aTomlValue
. #110 - Fix output of
ToString
to allow re-parsing it. #111
All changes: v0.3.5...v0.4.0