Skip to content
Apr 30, 2019
Handle other key types in Unmarshal (pelletier#276)
Previously, this would fail with:

```
panic: reflect.Value.SetMapIndex: value of type string is not assignable to type toml.letter [recovered]
panic: reflect.Value.SetMapIndex: value of type string is not assignable to type toml.letter
```

Now this only panics when the key type cannot be converted from a
string.
Apr 2, 2019
Option to keep fields ordered when marshal struct (pelletier#266)
Adds a new `Order()` option to preserve order of struct fields when
marshaling.
Jun 5, 2018
Multiline Marshal tag (pelletier#221)
The new multiline tag works just like the existing 'commented' tag (i.e.
`multiline:"true"`), and tells go-toml to marshal the value as a
multi-line string. The tag currently has no impact on any non-string
fields.
Jan 18, 2018
Fix backward incompatibility for Set* methods (pelletier#213)
Patch pelletier#185 introduced a backward incompatibility by changing the arguments
of the `Set*` methods on `Tree`.

This change restores the arguments to what they previous were, and
introduces `SetWithComment` and `SetPathWithComment` to perform the same
action.
Sep 24, 2017
Fix example code in README (pelletier#187)
May 31, 2017
Write empty tables as well (pelletier#169)
Empty tables are allowed by the spec, so they should not be removed:

  [[empty-tables]]
  [[empty-tables]]

is perfectly valid.

Fixes pelletier#163
Mar 2, 2017
Fix coveralls (pelletier#136)
Dec 2, 2016
Bump test go patchlevels (pelletier#113)
* 1.6.4
* 1.7.4
Jun 30, 2016
Don't hang when reading an invalid rvalue (pelletier#77)
Fixes pelletier#76
Apr 22, 2016
Fix inline tables parsing
Inline tables were wrapped inside a TomlValue, although they should
just be part of the tree.
You can’t perform that action at this time.