Skip to content

Releases: pelletier/go-toml

v1.4.0

02 May 00:29

Choose a tag to compare

What's new

  • Docker image for tools #269
  • Allow unmarshaling top level maps #273
  • Unmarshal handles custom key types convertible to string #276

All changes: v1.3.0...v1.4.0

v1.3.0

02 Apr 17:07

Choose a tag to compare

What's new

  • Allow to change default tags for Decoder and Encoder #241
  • Support time.duration #248
  • Map camelCased keys to fields in structs #251
  • Allow to marshal pointer to struct and map #247
  • Support byte order mark #250
  • Add Delete* functions to Tree #256
  • Provide "default" tag for unmarshal #259
  • Go 1.12 support #261
  • Provide Go mod #265
  • Option to keep fields ordered when marshaling struct #266

Fixed Bugs

  • Fix path not found message on Windows #227
  • Fix panic when type mismatch between toml and struct #236
  • Fix integer-only keys in inline tables #224

All changes: v1.2.0...v1.3.0

v1.2.0

05 Jun 20:58
c01d127

Choose a tag to compare

What's new

  • Go 1.10 support #223
  • Make multi-line arrays always use trailing commas #217
  • Multiline Marshal tag #221

All changes: v1.1.0...v1.2.0

v1.1.0

18 Jan 23:05
acdc450

Choose a tag to compare

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

01 Oct 19:11

Choose a tag to compare

What's new

Fixed Bugs

  • Fix float to string encoding. #172
  • Fix example in the README. #187
  • Fix Marshal examples. #178

All changes: v1.0.0...v1.0.1

v1.0.0

31 May 01:52

Choose a tag to compare

Breaking changes

  • Renamed TomlTree to Tree. #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 a Tree 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 and tomll now emit empty tables to match the TOML specification. #169

All changes: v0.5.0...v1.0.0

v0.5.0

08 Mar 17:38

Choose a tag to compare

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 given Writer. #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

03 Dec 10:24

Choose a tag to compare

What's new

  • New tool: tomljson. It provides a CLI tool similar to tomll 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] and map[interface{}]interface{}. #103
  • Fix incorrect wrapping of []*TomlTree in a TomlValue. #110
  • Fix output of ToString to allow re-parsing it. #111

All changes: v0.3.5...v0.4.0

v0.3.5

16 Jul 12:28

Choose a tag to compare

What's new

Fixed Bugs

  • Don't hang when reading an invalid value. #76

v0.3.4

25 Apr 12:31

Choose a tag to compare

What's new

  • TomlTree.ToMap() convert a TomlTree to a regular map[string]interface{} #59

Fixed Bugs

  • Query matcher doesn't handle arrays tables #52
  • Update query documentation #54
  • Fix multiline strings #62