Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 50 million developers.
Sign upHandle 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.
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.
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.
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
Don't hang when reading an invalid rvalue (pelletier#77) Fixes pelletier#76
PreviousNext