Skip to content

Tags

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.
Option to keep fields ordered when marshal struct (pelletier#266)
Adds a new `Order()` option to preserve order of struct fields when
marshaling.

v1.2.0

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.

v1.1.0

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.
Fix example code in README (pelletier#187)
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
Fix coveralls (pelletier#136)
Bump test go patchlevels (pelletier#113)
* 1.6.4
* 1.7.4
Don't hang when reading an invalid rvalue (pelletier#77)
Fixes pelletier#76
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.